azure-sdk-for-go: github.com/Azure/azure-sdk-for-go/services/vmwarecloudsimple/mgmt/2019-04-01/vmwarecloudsimple Index | Files | Directories

package vmwarecloudsimple

import "github.com/Azure/azure-sdk-for-go/services/vmwarecloudsimple/mgmt/2019-04-01/vmwarecloudsimple"

Package vmwarecloudsimple implements the Azure ARM Vmwarecloudsimple service API version 2019-04-01.

Description of the new service

Index

Package Files

client.go customizationpolicies.go dedicatedcloudnodes.go dedicatedcloudservices.go models.go operations.go privateclouds.go resourcepools.go skusavailability.go usages.go version.go virtualmachines.go virtualmachinetemplates.go virtualnetworks.go

Constants

const (
    // DefaultBaseURI is the default URI used for the service Vmwarecloudsimple
    DefaultBaseURI = "https://management.azure.com"
)

func UserAgent Uses

func UserAgent() string

UserAgent returns the UserAgent string to use when sending http.Requests.

func Version Uses

func Version() string

Version returns the semantic version (see http://semver.org) of the client.

type AggregationType Uses

type AggregationType string

AggregationType enumerates the values for aggregation type.

const (
    // Average ...
    Average AggregationType = "Average"
    // Total ...
    Total AggregationType = "Total"
)

func PossibleAggregationTypeValues Uses

func PossibleAggregationTypeValues() []AggregationType

PossibleAggregationTypeValues returns an array of possible values for the AggregationType const type.

type Allocation Uses

type Allocation string

Allocation enumerates the values for allocation.

const (
    // Dynamic ...
    Dynamic Allocation = "dynamic"
    // Static ...
    Static Allocation = "static"
)

func PossibleAllocationValues Uses

func PossibleAllocationValues() []Allocation

PossibleAllocationValues returns an array of possible values for the Allocation const type.

type AvailableOperation Uses

type AvailableOperation struct {
    // Display - The list of operations
    Display *AvailableOperationDisplay `json:"display,omitempty"`
    // IsDataAction - Indicating whether the operation is a data action or not
    IsDataAction *bool `json:"isDataAction,omitempty"`
    // Name - {resourceProviderNamespace}/{resourceType}/{read|write|delete|action}
    Name *string `json:"name,omitempty"`
    // Origin - The origin of operation. Possible values include: 'User', 'System', 'Usersystem'
    Origin OperationOrigin `json:"origin,omitempty"`
    // AvailableOperationDisplayPropertyServiceSpecification - The list of operation properties
    *AvailableOperationDisplayPropertyServiceSpecification `json:"properties,omitempty"`
}

AvailableOperation resource provider available operation model

func (AvailableOperation) MarshalJSON Uses

func (ao AvailableOperation) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for AvailableOperation.

func (*AvailableOperation) UnmarshalJSON Uses

func (ao *AvailableOperation) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for AvailableOperation struct.

type AvailableOperationDisplay Uses

type AvailableOperationDisplay struct {
    // Description - Description of the operation for display purposes
    Description *string `json:"description,omitempty"`
    // Operation - Name of the operation for display purposes
    Operation *string `json:"operation,omitempty"`
    // Provider - Name of the provider for display purposes
    Provider *string `json:"provider,omitempty"`
    // Resource - Name of the resource type for display purposes
    Resource *string `json:"resource,omitempty"`
}

AvailableOperationDisplay resource provider available operation display model

type AvailableOperationDisplayPropertyServiceSpecification Uses

type AvailableOperationDisplayPropertyServiceSpecification struct {
    // ServiceSpecification - The list of specification's service metrics
    ServiceSpecification *AvailableOperationDisplayPropertyServiceSpecificationMetricsList `json:"serviceSpecification,omitempty"`
}

AvailableOperationDisplayPropertyServiceSpecification available operation display property service specification model

type AvailableOperationDisplayPropertyServiceSpecificationMetricsItem Uses

type AvailableOperationDisplayPropertyServiceSpecificationMetricsItem struct {
    // AggregationType - Metric's aggregation type for e.g. (Average, Total). Possible values include: 'Average', 'Total'
    AggregationType AggregationType `json:"aggregationType,omitempty"`
    // DisplayDescription - Metric's description
    DisplayDescription *string `json:"displayDescription,omitempty"`
    // DisplayName - Human readable metric's name
    DisplayName *string `json:"displayName,omitempty"`
    // Name - Metric's name/id
    Name *string `json:"name,omitempty"`
    // Unit - Metric's unit
    Unit *string `json:"unit,omitempty"`
}

AvailableOperationDisplayPropertyServiceSpecificationMetricsItem available operation display property service specification metrics item

type AvailableOperationDisplayPropertyServiceSpecificationMetricsList Uses

type AvailableOperationDisplayPropertyServiceSpecificationMetricsList struct {
    // MetricSpecifications - Metric specifications of operation
    MetricSpecifications *[]AvailableOperationDisplayPropertyServiceSpecificationMetricsItem `json:"metricSpecifications,omitempty"`
}

AvailableOperationDisplayPropertyServiceSpecificationMetricsList list of available operation display property service specification metrics

type AvailableOperationsListResponse Uses

type AvailableOperationsListResponse struct {
    autorest.Response `json:"-"`
    // NextLink - Link for next list of available operations
    NextLink *string `json:"nextLink,omitempty"`
    // Value - Returns a list of available operations
    Value *[]AvailableOperation `json:"value,omitempty"`
}

AvailableOperationsListResponse list of available operations

func (AvailableOperationsListResponse) IsEmpty Uses

func (aolr AvailableOperationsListResponse) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type AvailableOperationsListResponseIterator Uses

type AvailableOperationsListResponseIterator struct {
    // contains filtered or unexported fields
}

AvailableOperationsListResponseIterator provides access to a complete listing of AvailableOperation values.

func NewAvailableOperationsListResponseIterator Uses

func NewAvailableOperationsListResponseIterator(page AvailableOperationsListResponsePage) AvailableOperationsListResponseIterator

Creates a new instance of the AvailableOperationsListResponseIterator type.

func (*AvailableOperationsListResponseIterator) Next Uses

func (iter *AvailableOperationsListResponseIterator) Next() error

Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*AvailableOperationsListResponseIterator) NextWithContext Uses

func (iter *AvailableOperationsListResponseIterator) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.

func (AvailableOperationsListResponseIterator) NotDone Uses

func (iter AvailableOperationsListResponseIterator) NotDone() bool

NotDone returns true if the enumeration should be started or is not yet complete.

func (AvailableOperationsListResponseIterator) Response Uses

func (iter AvailableOperationsListResponseIterator) Response() AvailableOperationsListResponse

Response returns the raw server response from the last page request.

func (AvailableOperationsListResponseIterator) Value Uses

func (iter AvailableOperationsListResponseIterator) Value() AvailableOperation

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type AvailableOperationsListResponsePage Uses

type AvailableOperationsListResponsePage struct {
    // contains filtered or unexported fields
}

AvailableOperationsListResponsePage contains a page of AvailableOperation values.

func NewAvailableOperationsListResponsePage Uses

func NewAvailableOperationsListResponsePage(getNextPage func(context.Context, AvailableOperationsListResponse) (AvailableOperationsListResponse, error)) AvailableOperationsListResponsePage

Creates a new instance of the AvailableOperationsListResponsePage type.

func (*AvailableOperationsListResponsePage) Next Uses

func (page *AvailableOperationsListResponsePage) Next() error

Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*AvailableOperationsListResponsePage) NextWithContext Uses

func (page *AvailableOperationsListResponsePage) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.

func (AvailableOperationsListResponsePage) NotDone Uses

func (page AvailableOperationsListResponsePage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (AvailableOperationsListResponsePage) Response Uses

func (page AvailableOperationsListResponsePage) Response() AvailableOperationsListResponse

Response returns the raw server response from the last page request.

func (AvailableOperationsListResponsePage) Values Uses

func (page AvailableOperationsListResponsePage) Values() []AvailableOperation

Values returns the slice of values for the current page or nil if there are no values.

type BaseClient Uses

type BaseClient struct {
    autorest.Client
    BaseURI        string
    SubscriptionID string
    Referer        string
}

BaseClient is the base client for Vmwarecloudsimple.

func New Uses

func New(subscriptionID string, referer string) BaseClient

New creates an instance of the BaseClient client.

func NewWithBaseURI Uses

func NewWithBaseURI(baseURI string, subscriptionID string, referer string) BaseClient

NewWithBaseURI creates an instance of the BaseClient client.

type CSRPError Uses

type CSRPError struct {
    // Error - Error's body
    Error *CSRPErrorBody `json:"error,omitempty"`
}

CSRPError general error model

type CSRPErrorBody Uses

type CSRPErrorBody struct {
    // Code - READ-ONLY; Error's code
    Code *string `json:"code,omitempty"`
    // Details - READ-ONLY; Error's details
    Details *[]CSRPErrorBody `json:"details,omitempty"`
    // Message - READ-ONLY; Error's message
    Message *string `json:"message,omitempty"`
    // Target - Error's target
    Target *string `json:"target,omitempty"`
}

CSRPErrorBody error properties

type CustomizationHostName Uses

type CustomizationHostName struct {
    // Name - Hostname
    Name *string `json:"name,omitempty"`
    // Type - Type of host name. Possible values include: 'USERDEFINED', 'PREFIXBASED', 'FIXED', 'VIRTUALMACHINENAME', 'CUSTOMNAME'
    Type Type `json:"type,omitempty"`
}

CustomizationHostName host name model

type CustomizationIPAddress Uses

type CustomizationIPAddress struct {
    // Argument - Argument when Custom ip type is selected
    Argument *string `json:"argument,omitempty"`
    // IPAddress - Defined Ip Address when Fixed ip type is selected
    IPAddress *string `json:"ipAddress,omitempty"`
    // Type - Customization Specification ip type. Possible values include: 'Type1CUSTOM', 'Type1DHCPIP', 'Type1FIXEDIP', 'Type1USERDEFINED'
    Type Type1 `json:"type,omitempty"`
}

CustomizationIPAddress ...

type CustomizationIPSettings Uses

type CustomizationIPSettings struct {
    // Gateway - The list of gateways
    Gateway *[]string `json:"gateway,omitempty"`
    // IP - Ip address customization settings
    IP  *CustomizationIPAddress `json:"ip,omitempty"`
    // SubnetMask - Adapter subnet mask
    SubnetMask *string `json:"subnetMask,omitempty"`
}

CustomizationIPSettings ...

type CustomizationIdentity Uses

type CustomizationIdentity struct {
    // Data - Windows Text Identity. Prepared data
    Data *string `json:"data,omitempty"`
    // HostName - Virtual machine host name settings
    HostName *CustomizationHostName `json:"hostName,omitempty"`
    // Type - Identity type. Possible values include: 'WINDOWSTEXT', 'WINDOWS', 'LINUX'
    Type Type2 `json:"type,omitempty"`
    // UserData - Windows Identity. User data customization
    UserData *CustomizationIdentityUserData `json:"userData,omitempty"`
}

CustomizationIdentity ...

type CustomizationIdentityUserData Uses

type CustomizationIdentityUserData struct {
    // IsPasswordPredefined - Is password predefined in customization policy
    IsPasswordPredefined *bool `json:"isPasswordPredefined,omitempty"`
}

CustomizationIdentityUserData windows Identity. User data customization

type CustomizationNicSetting Uses

type CustomizationNicSetting struct {
    // Adapter - The list of adapters' settings
    Adapter *CustomizationIPSettings `json:"adapter,omitempty"`
    // MacAddress - NIC mac address
    MacAddress *string `json:"macAddress,omitempty"`
}

CustomizationNicSetting ...

type CustomizationPoliciesClient Uses

type CustomizationPoliciesClient struct {
    BaseClient
}

CustomizationPoliciesClient is the description of the new service

func NewCustomizationPoliciesClient Uses

func NewCustomizationPoliciesClient(subscriptionID string, referer string) CustomizationPoliciesClient

NewCustomizationPoliciesClient creates an instance of the CustomizationPoliciesClient client.

func NewCustomizationPoliciesClientWithBaseURI Uses

func NewCustomizationPoliciesClientWithBaseURI(baseURI string, subscriptionID string, referer string) CustomizationPoliciesClient

NewCustomizationPoliciesClientWithBaseURI creates an instance of the CustomizationPoliciesClient client.

func (CustomizationPoliciesClient) Get Uses

func (client CustomizationPoliciesClient) Get(ctx context.Context, regionID string, pcName string, customizationPolicyName string) (result CustomizationPolicy, err error)

Get returns customization policy by its name Parameters: regionID - the region Id (westus, eastus) pcName - the private cloud name customizationPolicyName - customization policy name

func (CustomizationPoliciesClient) GetPreparer Uses

func (client CustomizationPoliciesClient) GetPreparer(ctx context.Context, regionID string, pcName string, customizationPolicyName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (CustomizationPoliciesClient) GetResponder Uses

func (client CustomizationPoliciesClient) GetResponder(resp *http.Response) (result CustomizationPolicy, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (CustomizationPoliciesClient) GetSender Uses

func (client CustomizationPoliciesClient) GetSender(req *http.Request) (*http.Response, error)

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

func (CustomizationPoliciesClient) List Uses

func (client CustomizationPoliciesClient) List(ctx context.Context, regionID string, pcName string, filter string) (result CustomizationPoliciesListResponsePage, err error)

List returns list of customization policies in region for private cloud Parameters: regionID - the region Id (westus, eastus) pcName - the private cloud name filter - the filter to apply on the list operation. only type is allowed here as a filter e.g. $filter=type eq 'xxxx'

func (CustomizationPoliciesClient) ListComplete Uses

func (client CustomizationPoliciesClient) ListComplete(ctx context.Context, regionID string, pcName string, filter string) (result CustomizationPoliciesListResponseIterator, err error)

ListComplete enumerates all values, automatically crossing page boundaries as required.

func (CustomizationPoliciesClient) ListPreparer Uses

func (client CustomizationPoliciesClient) ListPreparer(ctx context.Context, regionID string, pcName string, filter string) (*http.Request, error)

ListPreparer prepares the List request.

func (CustomizationPoliciesClient) ListResponder Uses

func (client CustomizationPoliciesClient) ListResponder(resp *http.Response) (result CustomizationPoliciesListResponse, err error)

ListResponder handles the response to the List request. The method always closes the http.Response Body.

func (CustomizationPoliciesClient) ListSender Uses

func (client CustomizationPoliciesClient) ListSender(req *http.Request) (*http.Response, error)

ListSender sends the List request. The method will close the http.Response Body if it receives an error.

type CustomizationPoliciesListResponse Uses

type CustomizationPoliciesListResponse struct {
    autorest.Response `json:"-"`
    // NextLink - Link for next list of the Customization policy
    NextLink *string `json:"nextLink,omitempty"`
    // Value - List of the customization policies
    Value *[]CustomizationPolicy `json:"value,omitempty"`
}

CustomizationPoliciesListResponse list of customization polices response model

func (CustomizationPoliciesListResponse) IsEmpty Uses

func (cplr CustomizationPoliciesListResponse) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type CustomizationPoliciesListResponseIterator Uses

type CustomizationPoliciesListResponseIterator struct {
    // contains filtered or unexported fields
}

CustomizationPoliciesListResponseIterator provides access to a complete listing of CustomizationPolicy values.

func NewCustomizationPoliciesListResponseIterator Uses

func NewCustomizationPoliciesListResponseIterator(page CustomizationPoliciesListResponsePage) CustomizationPoliciesListResponseIterator

Creates a new instance of the CustomizationPoliciesListResponseIterator type.

func (*CustomizationPoliciesListResponseIterator) Next Uses

func (iter *CustomizationPoliciesListResponseIterator) Next() error

Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*CustomizationPoliciesListResponseIterator) NextWithContext Uses

func (iter *CustomizationPoliciesListResponseIterator) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.

func (CustomizationPoliciesListResponseIterator) NotDone Uses

func (iter CustomizationPoliciesListResponseIterator) NotDone() bool

NotDone returns true if the enumeration should be started or is not yet complete.

func (CustomizationPoliciesListResponseIterator) Response Uses

func (iter CustomizationPoliciesListResponseIterator) Response() CustomizationPoliciesListResponse

Response returns the raw server response from the last page request.

func (CustomizationPoliciesListResponseIterator) Value Uses

func (iter CustomizationPoliciesListResponseIterator) Value() CustomizationPolicy

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type CustomizationPoliciesListResponsePage Uses

type CustomizationPoliciesListResponsePage struct {
    // contains filtered or unexported fields
}

CustomizationPoliciesListResponsePage contains a page of CustomizationPolicy values.

func NewCustomizationPoliciesListResponsePage Uses

func NewCustomizationPoliciesListResponsePage(getNextPage func(context.Context, CustomizationPoliciesListResponse) (CustomizationPoliciesListResponse, error)) CustomizationPoliciesListResponsePage

Creates a new instance of the CustomizationPoliciesListResponsePage type.

func (*CustomizationPoliciesListResponsePage) Next Uses

func (page *CustomizationPoliciesListResponsePage) Next() error

Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*CustomizationPoliciesListResponsePage) NextWithContext Uses

func (page *CustomizationPoliciesListResponsePage) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.

func (CustomizationPoliciesListResponsePage) NotDone Uses

func (page CustomizationPoliciesListResponsePage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (CustomizationPoliciesListResponsePage) Response Uses

func (page CustomizationPoliciesListResponsePage) Response() CustomizationPoliciesListResponse

Response returns the raw server response from the last page request.

func (CustomizationPoliciesListResponsePage) Values Uses

func (page CustomizationPoliciesListResponsePage) Values() []CustomizationPolicy

Values returns the slice of values for the current page or nil if there are no values.

type CustomizationPolicy Uses

type CustomizationPolicy struct {
    autorest.Response `json:"-"`
    // ID - Customization policy azure id
    ID  *string `json:"id,omitempty"`
    // Location - Azure region
    Location *string `json:"location,omitempty"`
    // Name - READ-ONLY; Customization policy name
    Name *string `json:"name,omitempty"`
    // CustomizationPolicyProperties - Customization Policy properties
    *CustomizationPolicyProperties `json:"properties,omitempty"`
    // Type - READ-ONLY
    Type *string `json:"type,omitempty"`
}

CustomizationPolicy the virtual machine customization policy

func (CustomizationPolicy) MarshalJSON Uses

func (cp CustomizationPolicy) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for CustomizationPolicy.

func (*CustomizationPolicy) UnmarshalJSON Uses

func (cp *CustomizationPolicy) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for CustomizationPolicy struct.

type CustomizationPolicyProperties Uses

type CustomizationPolicyProperties struct {
    // Description - Policy description
    Description *string `json:"description,omitempty"`
    // PrivateCloudID - The Private cloud id
    PrivateCloudID *string `json:"privateCloudId,omitempty"`
    // Specification - Detailed customization policy specification
    Specification *CustomizationSpecification `json:"specification,omitempty"`
    // Type - The type of customization (Linux or Windows). Possible values include: 'Type3LINUX', 'Type3WINDOWS'
    Type Type3 `json:"type,omitempty"`
    // Version - Policy version
    Version *string `json:"version,omitempty"`
}

CustomizationPolicyProperties the properties of Customization policy

type CustomizationSpecification Uses

type CustomizationSpecification struct {
    // Identity - Customization Identity. It contains data about user and hostname
    Identity *CustomizationIdentity `json:"identity,omitempty"`
    // NicSettings - Network interface settings
    NicSettings *[]CustomizationNicSetting `json:"nicSettings,omitempty"`
}

CustomizationSpecification the specification for Customization Policy

type DedicatedCloudNode Uses

type DedicatedCloudNode struct {
    autorest.Response `json:"-"`
    // ID - READ-ONLY; /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/dedicatedCloudNodes/{dedicatedCloudNodeName}
    ID  *string `json:"id,omitempty"`
    // Location - Azure region
    Location *string `json:"location,omitempty"`
    // Name - READ-ONLY; {dedicatedCloudNodeName}
    Name *string `json:"name,omitempty"`
    // DedicatedCloudNodeProperties - Dedicated Cloud Nodes properties
    *DedicatedCloudNodeProperties `json:"properties,omitempty"`
    // Sku - Dedicated Cloud Nodes SKU
    Sku *Sku `json:"sku,omitempty"`
    // Tags - Dedicated Cloud Nodes tags
    Tags map[string]*string `json:"tags"`
    // Type - READ-ONLY; {resourceProviderNamespace}/{resourceType}
    Type *string `json:"type,omitempty"`
}

DedicatedCloudNode dedicated cloud node model

func (DedicatedCloudNode) MarshalJSON Uses

func (dcn DedicatedCloudNode) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for DedicatedCloudNode.

func (*DedicatedCloudNode) UnmarshalJSON Uses

func (dcn *DedicatedCloudNode) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for DedicatedCloudNode struct.

type DedicatedCloudNodeListResponse Uses

type DedicatedCloudNodeListResponse struct {
    autorest.Response `json:"-"`
    // NextLink - Link for next list of DedicatedCloudNode
    NextLink *string `json:"nextLink,omitempty"`
    // Value - Results of the DedicatedCloudNode list
    Value *[]DedicatedCloudNode `json:"value,omitempty"`
}

DedicatedCloudNodeListResponse list of dedicated nodes response model

func (DedicatedCloudNodeListResponse) IsEmpty Uses

func (dcnlr DedicatedCloudNodeListResponse) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type DedicatedCloudNodeListResponseIterator Uses

type DedicatedCloudNodeListResponseIterator struct {
    // contains filtered or unexported fields
}

DedicatedCloudNodeListResponseIterator provides access to a complete listing of DedicatedCloudNode values.

func NewDedicatedCloudNodeListResponseIterator Uses

func NewDedicatedCloudNodeListResponseIterator(page DedicatedCloudNodeListResponsePage) DedicatedCloudNodeListResponseIterator

Creates a new instance of the DedicatedCloudNodeListResponseIterator type.

func (*DedicatedCloudNodeListResponseIterator) Next Uses

func (iter *DedicatedCloudNodeListResponseIterator) Next() error

Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*DedicatedCloudNodeListResponseIterator) NextWithContext Uses

func (iter *DedicatedCloudNodeListResponseIterator) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.

func (DedicatedCloudNodeListResponseIterator) NotDone Uses

func (iter DedicatedCloudNodeListResponseIterator) NotDone() bool

NotDone returns true if the enumeration should be started or is not yet complete.

func (DedicatedCloudNodeListResponseIterator) Response Uses

func (iter DedicatedCloudNodeListResponseIterator) Response() DedicatedCloudNodeListResponse

Response returns the raw server response from the last page request.

func (DedicatedCloudNodeListResponseIterator) Value Uses

func (iter DedicatedCloudNodeListResponseIterator) Value() DedicatedCloudNode

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type DedicatedCloudNodeListResponsePage Uses

type DedicatedCloudNodeListResponsePage struct {
    // contains filtered or unexported fields
}

DedicatedCloudNodeListResponsePage contains a page of DedicatedCloudNode values.

func NewDedicatedCloudNodeListResponsePage Uses

func NewDedicatedCloudNodeListResponsePage(getNextPage func(context.Context, DedicatedCloudNodeListResponse) (DedicatedCloudNodeListResponse, error)) DedicatedCloudNodeListResponsePage

Creates a new instance of the DedicatedCloudNodeListResponsePage type.

func (*DedicatedCloudNodeListResponsePage) Next Uses

func (page *DedicatedCloudNodeListResponsePage) Next() error

Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*DedicatedCloudNodeListResponsePage) NextWithContext Uses

func (page *DedicatedCloudNodeListResponsePage) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.

func (DedicatedCloudNodeListResponsePage) NotDone Uses

func (page DedicatedCloudNodeListResponsePage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (DedicatedCloudNodeListResponsePage) Response Uses

func (page DedicatedCloudNodeListResponsePage) Response() DedicatedCloudNodeListResponse

Response returns the raw server response from the last page request.

func (DedicatedCloudNodeListResponsePage) Values Uses

func (page DedicatedCloudNodeListResponsePage) Values() []DedicatedCloudNode

Values returns the slice of values for the current page or nil if there are no values.

type DedicatedCloudNodeProperties Uses

type DedicatedCloudNodeProperties struct {
    // AvailabilityZoneID - Availability Zone id, e.g. "az1"
    AvailabilityZoneID *string `json:"availabilityZoneId,omitempty"`
    // AvailabilityZoneName - READ-ONLY; Availability Zone name, e.g. "Availability Zone 1"
    AvailabilityZoneName *string `json:"availabilityZoneName,omitempty"`
    // CloudRackName - READ-ONLY; VMWare Cloud Rack Name
    CloudRackName *string `json:"cloudRackName,omitempty"`
    // Created - READ-ONLY; date time the resource was created
    Created interface{} `json:"created,omitempty"`
    // NodesCount - count of nodes to create
    NodesCount *int32 `json:"nodesCount,omitempty"`
    // PlacementGroupID - Placement Group id, e.g. "n1"
    PlacementGroupID *string `json:"placementGroupId,omitempty"`
    // PlacementGroupName - READ-ONLY; Placement Name, e.g. "Placement Group 1"
    PlacementGroupName *string `json:"placementGroupName,omitempty"`
    // PrivateCloudID - READ-ONLY; Private Cloud Id
    PrivateCloudID *string `json:"privateCloudId,omitempty"`
    // PrivateCloudName - READ-ONLY; Resource Pool Name
    PrivateCloudName *string `json:"privateCloudName,omitempty"`
    // ProvisioningState - READ-ONLY; The provisioning status of the resource
    ProvisioningState *string `json:"provisioningState,omitempty"`
    // PurchaseID - purchase id
    PurchaseID *uuid.UUID `json:"purchaseId,omitempty"`
    // SkuDescription - Dedicated Cloud Nodes SKU's description
    *SkuDescription `json:"skuDescription,omitempty"`
    // Status - READ-ONLY; Node status, indicates is private cloud set up on this node or not. Possible values include: 'Unused', 'Used'
    Status NodeStatus `json:"status,omitempty"`
    // VmwareClusterName - READ-ONLY; VMWare Cluster Name
    VmwareClusterName *string `json:"vmwareClusterName,omitempty"`
}

DedicatedCloudNodeProperties properties of dedicated cloud node

func (DedicatedCloudNodeProperties) MarshalJSON Uses

func (dcnp DedicatedCloudNodeProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for DedicatedCloudNodeProperties.

func (*DedicatedCloudNodeProperties) UnmarshalJSON Uses

func (dcnp *DedicatedCloudNodeProperties) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for DedicatedCloudNodeProperties struct.

type DedicatedCloudNodesClient Uses

type DedicatedCloudNodesClient struct {
    BaseClient
}

DedicatedCloudNodesClient is the description of the new service

func NewDedicatedCloudNodesClient Uses

func NewDedicatedCloudNodesClient(subscriptionID string, referer string) DedicatedCloudNodesClient

NewDedicatedCloudNodesClient creates an instance of the DedicatedCloudNodesClient client.

func NewDedicatedCloudNodesClientWithBaseURI Uses

func NewDedicatedCloudNodesClientWithBaseURI(baseURI string, subscriptionID string, referer string) DedicatedCloudNodesClient

NewDedicatedCloudNodesClientWithBaseURI creates an instance of the DedicatedCloudNodesClient client.

func (DedicatedCloudNodesClient) CreateOrUpdate Uses

func (client DedicatedCloudNodesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, dedicatedCloudNodeName string, dedicatedCloudNodeRequest DedicatedCloudNode) (result DedicatedCloudNodesCreateOrUpdateFuture, err error)

CreateOrUpdate returns dedicated cloud node by its name Parameters: resourceGroupName - the name of the resource group dedicatedCloudNodeName - dedicated cloud node name dedicatedCloudNodeRequest - create Dedicated Cloud Node request

func (DedicatedCloudNodesClient) CreateOrUpdatePreparer Uses

func (client DedicatedCloudNodesClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, dedicatedCloudNodeName string, dedicatedCloudNodeRequest DedicatedCloudNode) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (DedicatedCloudNodesClient) CreateOrUpdateResponder Uses

func (client DedicatedCloudNodesClient) CreateOrUpdateResponder(resp *http.Response) (result DedicatedCloudNode, err error)

CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.

func (DedicatedCloudNodesClient) CreateOrUpdateSender Uses

func (client DedicatedCloudNodesClient) CreateOrUpdateSender(req *http.Request) (future DedicatedCloudNodesCreateOrUpdateFuture, err error)

CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the http.Response Body if it receives an error.

func (DedicatedCloudNodesClient) Delete Uses

func (client DedicatedCloudNodesClient) Delete(ctx context.Context, resourceGroupName string, dedicatedCloudNodeName string) (result autorest.Response, err error)

Delete delete dedicated cloud node Parameters: resourceGroupName - the name of the resource group dedicatedCloudNodeName - dedicated cloud node name

func (DedicatedCloudNodesClient) DeletePreparer Uses

func (client DedicatedCloudNodesClient) DeletePreparer(ctx context.Context, resourceGroupName string, dedicatedCloudNodeName string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (DedicatedCloudNodesClient) DeleteResponder Uses

func (client DedicatedCloudNodesClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)

DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.

func (DedicatedCloudNodesClient) DeleteSender Uses

func (client DedicatedCloudNodesClient) DeleteSender(req *http.Request) (*http.Response, error)

DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.

func (DedicatedCloudNodesClient) Get Uses

func (client DedicatedCloudNodesClient) Get(ctx context.Context, resourceGroupName string, dedicatedCloudNodeName string) (result DedicatedCloudNode, err error)

Get returns dedicated cloud node Parameters: resourceGroupName - the name of the resource group dedicatedCloudNodeName - dedicated cloud node name

func (DedicatedCloudNodesClient) GetPreparer Uses

func (client DedicatedCloudNodesClient) GetPreparer(ctx context.Context, resourceGroupName string, dedicatedCloudNodeName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (DedicatedCloudNodesClient) GetResponder Uses

func (client DedicatedCloudNodesClient) GetResponder(resp *http.Response) (result DedicatedCloudNode, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (DedicatedCloudNodesClient) GetSender Uses

func (client DedicatedCloudNodesClient) GetSender(req *http.Request) (*http.Response, error)

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

func (DedicatedCloudNodesClient) ListByResourceGroup Uses

func (client DedicatedCloudNodesClient) ListByResourceGroup(ctx context.Context, resourceGroupName string, filter string, top *int32, skipToken string) (result DedicatedCloudNodeListResponsePage, err error)

ListByResourceGroup returns list of dedicate cloud nodes within resource group Parameters: resourceGroupName - the name of the resource group filter - the filter to apply on the list operation top - the maximum number of record sets to return skipToken - to be used by nextLink implementation

func (DedicatedCloudNodesClient) ListByResourceGroupComplete Uses

func (client DedicatedCloudNodesClient) ListByResourceGroupComplete(ctx context.Context, resourceGroupName string, filter string, top *int32, skipToken string) (result DedicatedCloudNodeListResponseIterator, err error)

ListByResourceGroupComplete enumerates all values, automatically crossing page boundaries as required.

func (DedicatedCloudNodesClient) ListByResourceGroupPreparer Uses

func (client DedicatedCloudNodesClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string, filter string, top *int32, skipToken string) (*http.Request, error)

ListByResourceGroupPreparer prepares the ListByResourceGroup request.

func (DedicatedCloudNodesClient) ListByResourceGroupResponder Uses

func (client DedicatedCloudNodesClient) ListByResourceGroupResponder(resp *http.Response) (result DedicatedCloudNodeListResponse, err error)

ListByResourceGroupResponder handles the response to the ListByResourceGroup request. The method always closes the http.Response Body.

func (DedicatedCloudNodesClient) ListByResourceGroupSender Uses

func (client DedicatedCloudNodesClient) ListByResourceGroupSender(req *http.Request) (*http.Response, error)

ListByResourceGroupSender sends the ListByResourceGroup request. The method will close the http.Response Body if it receives an error.

func (DedicatedCloudNodesClient) ListBySubscription Uses

func (client DedicatedCloudNodesClient) ListBySubscription(ctx context.Context, filter string, top *int32, skipToken string) (result DedicatedCloudNodeListResponsePage, err error)

ListBySubscription returns list of dedicate cloud nodes within subscription Parameters: filter - the filter to apply on the list operation top - the maximum number of record sets to return skipToken - to be used by nextLink implementation

func (DedicatedCloudNodesClient) ListBySubscriptionComplete Uses

func (client DedicatedCloudNodesClient) ListBySubscriptionComplete(ctx context.Context, filter string, top *int32, skipToken string) (result DedicatedCloudNodeListResponseIterator, err error)

ListBySubscriptionComplete enumerates all values, automatically crossing page boundaries as required.

func (DedicatedCloudNodesClient) ListBySubscriptionPreparer Uses

func (client DedicatedCloudNodesClient) ListBySubscriptionPreparer(ctx context.Context, filter string, top *int32, skipToken string) (*http.Request, error)

ListBySubscriptionPreparer prepares the ListBySubscription request.

func (DedicatedCloudNodesClient) ListBySubscriptionResponder Uses

func (client DedicatedCloudNodesClient) ListBySubscriptionResponder(resp *http.Response) (result DedicatedCloudNodeListResponse, err error)

ListBySubscriptionResponder handles the response to the ListBySubscription request. The method always closes the http.Response Body.

func (DedicatedCloudNodesClient) ListBySubscriptionSender Uses

func (client DedicatedCloudNodesClient) ListBySubscriptionSender(req *http.Request) (*http.Response, error)

ListBySubscriptionSender sends the ListBySubscription request. The method will close the http.Response Body if it receives an error.

func (DedicatedCloudNodesClient) Update Uses

func (client DedicatedCloudNodesClient) Update(ctx context.Context, resourceGroupName string, dedicatedCloudNodeName string, dedicatedCloudNodeRequest PatchPayload) (result DedicatedCloudNode, err error)

Update patches dedicated node properties Parameters: resourceGroupName - the name of the resource group dedicatedCloudNodeName - dedicated cloud node name dedicatedCloudNodeRequest - patch Dedicated Cloud Node request

func (DedicatedCloudNodesClient) UpdatePreparer Uses

func (client DedicatedCloudNodesClient) UpdatePreparer(ctx context.Context, resourceGroupName string, dedicatedCloudNodeName string, dedicatedCloudNodeRequest PatchPayload) (*http.Request, error)

UpdatePreparer prepares the Update request.

func (DedicatedCloudNodesClient) UpdateResponder Uses

func (client DedicatedCloudNodesClient) UpdateResponder(resp *http.Response) (result DedicatedCloudNode, err error)

UpdateResponder handles the response to the Update request. The method always closes the http.Response Body.

func (DedicatedCloudNodesClient) UpdateSender Uses

func (client DedicatedCloudNodesClient) UpdateSender(req *http.Request) (*http.Response, error)

UpdateSender sends the Update request. The method will close the http.Response Body if it receives an error.

type DedicatedCloudNodesCreateOrUpdateFuture Uses

type DedicatedCloudNodesCreateOrUpdateFuture struct {
    azure.Future
}

DedicatedCloudNodesCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a long-running operation.

func (*DedicatedCloudNodesCreateOrUpdateFuture) Result Uses

func (future *DedicatedCloudNodesCreateOrUpdateFuture) Result(client DedicatedCloudNodesClient) (dcn DedicatedCloudNode, err error)

Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.

type DedicatedCloudService Uses

type DedicatedCloudService struct {
    autorest.Response `json:"-"`
    // ID - READ-ONLY; /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/dedicatedCloudServices/{dedicatedCloudServiceName}
    ID  *string `json:"id,omitempty"`
    // Location - Azure region
    Location *string `json:"location,omitempty"`
    // Name - READ-ONLY; {dedicatedCloudServiceName}
    Name *string `json:"name,omitempty"`
    // DedicatedCloudServiceProperties - The properties of Dedicated Node Service
    *DedicatedCloudServiceProperties `json:"properties,omitempty"`
    // Tags - The list of tags
    Tags map[string]*string `json:"tags"`
    // Type - READ-ONLY; {resourceProviderNamespace}/{resourceType}
    Type *string `json:"type,omitempty"`
}

DedicatedCloudService dedicated cloud service model

func (DedicatedCloudService) MarshalJSON Uses

func (dcs DedicatedCloudService) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for DedicatedCloudService.

func (*DedicatedCloudService) UnmarshalJSON Uses

func (dcs *DedicatedCloudService) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for DedicatedCloudService struct.

type DedicatedCloudServiceListResponse Uses

type DedicatedCloudServiceListResponse struct {
    autorest.Response `json:"-"`
    // NextLink - Link for next list of DedicatedCloudNode
    NextLink *string `json:"nextLink,omitempty"`
    // Value - Results of the DedicatedCloudService list
    Value *[]DedicatedCloudService `json:"value,omitempty"`
}

DedicatedCloudServiceListResponse list of dedicated cloud services

func (DedicatedCloudServiceListResponse) IsEmpty Uses

func (dcslr DedicatedCloudServiceListResponse) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type DedicatedCloudServiceListResponseIterator Uses

type DedicatedCloudServiceListResponseIterator struct {
    // contains filtered or unexported fields
}

DedicatedCloudServiceListResponseIterator provides access to a complete listing of DedicatedCloudService values.

func NewDedicatedCloudServiceListResponseIterator Uses

func NewDedicatedCloudServiceListResponseIterator(page DedicatedCloudServiceListResponsePage) DedicatedCloudServiceListResponseIterator

Creates a new instance of the DedicatedCloudServiceListResponseIterator type.

func (*DedicatedCloudServiceListResponseIterator) Next Uses

func (iter *DedicatedCloudServiceListResponseIterator) Next() error

Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*DedicatedCloudServiceListResponseIterator) NextWithContext Uses

func (iter *DedicatedCloudServiceListResponseIterator) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.

func (DedicatedCloudServiceListResponseIterator) NotDone Uses

func (iter DedicatedCloudServiceListResponseIterator) NotDone() bool

NotDone returns true if the enumeration should be started or is not yet complete.

func (DedicatedCloudServiceListResponseIterator) Response Uses

func (iter DedicatedCloudServiceListResponseIterator) Response() DedicatedCloudServiceListResponse

Response returns the raw server response from the last page request.

func (DedicatedCloudServiceListResponseIterator) Value Uses

func (iter DedicatedCloudServiceListResponseIterator) Value() DedicatedCloudService

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type DedicatedCloudServiceListResponsePage Uses

type DedicatedCloudServiceListResponsePage struct {
    // contains filtered or unexported fields
}

DedicatedCloudServiceListResponsePage contains a page of DedicatedCloudService values.

func NewDedicatedCloudServiceListResponsePage Uses

func NewDedicatedCloudServiceListResponsePage(getNextPage func(context.Context, DedicatedCloudServiceListResponse) (DedicatedCloudServiceListResponse, error)) DedicatedCloudServiceListResponsePage

Creates a new instance of the DedicatedCloudServiceListResponsePage type.

func (*DedicatedCloudServiceListResponsePage) Next Uses

func (page *DedicatedCloudServiceListResponsePage) Next() error

Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*DedicatedCloudServiceListResponsePage) NextWithContext Uses

func (page *DedicatedCloudServiceListResponsePage) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.

func (DedicatedCloudServiceListResponsePage) NotDone Uses

func (page DedicatedCloudServiceListResponsePage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (DedicatedCloudServiceListResponsePage) Response Uses

func (page DedicatedCloudServiceListResponsePage) Response() DedicatedCloudServiceListResponse

Response returns the raw server response from the last page request.

func (DedicatedCloudServiceListResponsePage) Values Uses

func (page DedicatedCloudServiceListResponsePage) Values() []DedicatedCloudService

Values returns the slice of values for the current page or nil if there are no values.

type DedicatedCloudServiceProperties Uses

type DedicatedCloudServiceProperties struct {
    // GatewaySubnet - gateway Subnet for the account. It will collect the subnet address and always treat it as /28
    GatewaySubnet *string `json:"gatewaySubnet,omitempty"`
    // IsAccountOnboarded - READ-ONLY; indicates whether account onboarded or not in a given region. Possible values include: 'NotOnBoarded', 'OnBoarded', 'OnBoardingFailed', 'OnBoarding'
    IsAccountOnboarded OnboardingStatus `json:"isAccountOnboarded,omitempty"`
    // Nodes - READ-ONLY; total nodes purchased
    Nodes *int32 `json:"nodes,omitempty"`
    // ServiceURL - READ-ONLY; link to a service management web portal
    ServiceURL *string `json:"serviceURL,omitempty"`
}

DedicatedCloudServiceProperties properties of dedicated cloud service

type DedicatedCloudServicesClient Uses

type DedicatedCloudServicesClient struct {
    BaseClient
}

DedicatedCloudServicesClient is the description of the new service

func NewDedicatedCloudServicesClient Uses

func NewDedicatedCloudServicesClient(subscriptionID string, referer string) DedicatedCloudServicesClient

NewDedicatedCloudServicesClient creates an instance of the DedicatedCloudServicesClient client.

func NewDedicatedCloudServicesClientWithBaseURI Uses

func NewDedicatedCloudServicesClientWithBaseURI(baseURI string, subscriptionID string, referer string) DedicatedCloudServicesClient

NewDedicatedCloudServicesClientWithBaseURI creates an instance of the DedicatedCloudServicesClient client.

func (DedicatedCloudServicesClient) CreateOrUpdate Uses

func (client DedicatedCloudServicesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, dedicatedCloudServiceName string, dedicatedCloudServiceRequest DedicatedCloudService) (result DedicatedCloudService, err error)

CreateOrUpdate create dedicate cloud service Parameters: resourceGroupName - the name of the resource group dedicatedCloudServiceName - dedicated cloud Service name dedicatedCloudServiceRequest - create Dedicated Cloud Service request

func (DedicatedCloudServicesClient) CreateOrUpdatePreparer Uses

func (client DedicatedCloudServicesClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, dedicatedCloudServiceName string, dedicatedCloudServiceRequest DedicatedCloudService) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (DedicatedCloudServicesClient) CreateOrUpdateResponder Uses

func (client DedicatedCloudServicesClient) CreateOrUpdateResponder(resp *http.Response) (result DedicatedCloudService, err error)

CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.

func (DedicatedCloudServicesClient) CreateOrUpdateSender Uses

func (client DedicatedCloudServicesClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error)

CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the http.Response Body if it receives an error.

func (DedicatedCloudServicesClient) Delete Uses

func (client DedicatedCloudServicesClient) Delete(ctx context.Context, resourceGroupName string, dedicatedCloudServiceName string) (result DedicatedCloudServicesDeleteFuture, err error)

Delete delete dedicate cloud service Parameters: resourceGroupName - the name of the resource group dedicatedCloudServiceName - dedicated cloud service name

func (DedicatedCloudServicesClient) DeletePreparer Uses

func (client DedicatedCloudServicesClient) DeletePreparer(ctx context.Context, resourceGroupName string, dedicatedCloudServiceName string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (DedicatedCloudServicesClient) DeleteResponder Uses

func (client DedicatedCloudServicesClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)

DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.

func (DedicatedCloudServicesClient) DeleteSender Uses

func (client DedicatedCloudServicesClient) DeleteSender(req *http.Request) (future DedicatedCloudServicesDeleteFuture, err error)

DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.

func (DedicatedCloudServicesClient) Get Uses

func (client DedicatedCloudServicesClient) Get(ctx context.Context, resourceGroupName string, dedicatedCloudServiceName string) (result DedicatedCloudService, err error)

Get returns Dedicate Cloud Service Parameters: resourceGroupName - the name of the resource group dedicatedCloudServiceName - dedicated cloud Service name

func (DedicatedCloudServicesClient) GetPreparer Uses

func (client DedicatedCloudServicesClient) GetPreparer(ctx context.Context, resourceGroupName string, dedicatedCloudServiceName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (DedicatedCloudServicesClient) GetResponder Uses

func (client DedicatedCloudServicesClient) GetResponder(resp *http.Response) (result DedicatedCloudService, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (DedicatedCloudServicesClient) GetSender Uses

func (client DedicatedCloudServicesClient) GetSender(req *http.Request) (*http.Response, error)

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

func (DedicatedCloudServicesClient) ListByResourceGroup Uses

func (client DedicatedCloudServicesClient) ListByResourceGroup(ctx context.Context, resourceGroupName string, filter string, top *int32, skipToken string) (result DedicatedCloudServiceListResponsePage, err error)

ListByResourceGroup returns list of dedicated cloud services within a resource group Parameters: resourceGroupName - the name of the resource group filter - the filter to apply on the list operation top - the maximum number of record sets to return skipToken - to be used by nextLink implementation

func (DedicatedCloudServicesClient) ListByResourceGroupComplete Uses

func (client DedicatedCloudServicesClient) ListByResourceGroupComplete(ctx context.Context, resourceGroupName string, filter string, top *int32, skipToken string) (result DedicatedCloudServiceListResponseIterator, err error)

ListByResourceGroupComplete enumerates all values, automatically crossing page boundaries as required.

func (DedicatedCloudServicesClient) ListByResourceGroupPreparer Uses

func (client DedicatedCloudServicesClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string, filter string, top *int32, skipToken string) (*http.Request, error)

ListByResourceGroupPreparer prepares the ListByResourceGroup request.

func (DedicatedCloudServicesClient) ListByResourceGroupResponder Uses

func (client DedicatedCloudServicesClient) ListByResourceGroupResponder(resp *http.Response) (result DedicatedCloudServiceListResponse, err error)

ListByResourceGroupResponder handles the response to the ListByResourceGroup request. The method always closes the http.Response Body.

func (DedicatedCloudServicesClient) ListByResourceGroupSender Uses

func (client DedicatedCloudServicesClient) ListByResourceGroupSender(req *http.Request) (*http.Response, error)

ListByResourceGroupSender sends the ListByResourceGroup request. The method will close the http.Response Body if it receives an error.

func (DedicatedCloudServicesClient) ListBySubscription Uses

func (client DedicatedCloudServicesClient) ListBySubscription(ctx context.Context, filter string, top *int32, skipToken string) (result DedicatedCloudServiceListResponsePage, err error)

ListBySubscription returns list of dedicated cloud services within a subscription Parameters: filter - the filter to apply on the list operation top - the maximum number of record sets to return skipToken - to be used by nextLink implementation

func (DedicatedCloudServicesClient) ListBySubscriptionComplete Uses

func (client DedicatedCloudServicesClient) ListBySubscriptionComplete(ctx context.Context, filter string, top *int32, skipToken string) (result DedicatedCloudServiceListResponseIterator, err error)

ListBySubscriptionComplete enumerates all values, automatically crossing page boundaries as required.

func (DedicatedCloudServicesClient) ListBySubscriptionPreparer Uses

func (client DedicatedCloudServicesClient) ListBySubscriptionPreparer(ctx context.Context, filter string, top *int32, skipToken string) (*http.Request, error)

ListBySubscriptionPreparer prepares the ListBySubscription request.

func (DedicatedCloudServicesClient) ListBySubscriptionResponder Uses

func (client DedicatedCloudServicesClient) ListBySubscriptionResponder(resp *http.Response) (result DedicatedCloudServiceListResponse, err error)

ListBySubscriptionResponder handles the response to the ListBySubscription request. The method always closes the http.Response Body.

func (DedicatedCloudServicesClient) ListBySubscriptionSender Uses

func (client DedicatedCloudServicesClient) ListBySubscriptionSender(req *http.Request) (*http.Response, error)

ListBySubscriptionSender sends the ListBySubscription request. The method will close the http.Response Body if it receives an error.

func (DedicatedCloudServicesClient) Update Uses

func (client DedicatedCloudServicesClient) Update(ctx context.Context, resourceGroupName string, dedicatedCloudServiceName string, dedicatedCloudServiceRequest PatchPayload) (result DedicatedCloudService, err error)

Update patch dedicated cloud service's properties Parameters: resourceGroupName - the name of the resource group dedicatedCloudServiceName - dedicated cloud service name dedicatedCloudServiceRequest - patch Dedicated Cloud Service request

func (DedicatedCloudServicesClient) UpdatePreparer Uses

func (client DedicatedCloudServicesClient) UpdatePreparer(ctx context.Context, resourceGroupName string, dedicatedCloudServiceName string, dedicatedCloudServiceRequest PatchPayload) (*http.Request, error)

UpdatePreparer prepares the Update request.

func (DedicatedCloudServicesClient) UpdateResponder Uses

func (client DedicatedCloudServicesClient) UpdateResponder(resp *http.Response) (result DedicatedCloudService, err error)

UpdateResponder handles the response to the Update request. The method always closes the http.Response Body.

func (DedicatedCloudServicesClient) UpdateSender Uses

func (client DedicatedCloudServicesClient) UpdateSender(req *http.Request) (*http.Response, error)

UpdateSender sends the Update request. The method will close the http.Response Body if it receives an error.

type DedicatedCloudServicesDeleteFuture Uses

type DedicatedCloudServicesDeleteFuture struct {
    azure.Future
}

DedicatedCloudServicesDeleteFuture an abstraction for monitoring and retrieving the results of a long-running operation.

func (*DedicatedCloudServicesDeleteFuture) Result Uses

func (future *DedicatedCloudServicesDeleteFuture) Result(client DedicatedCloudServicesClient) (ar autorest.Response, err error)

Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.

type DiskIndependenceMode Uses

type DiskIndependenceMode string

DiskIndependenceMode enumerates the values for disk independence mode.

const (
    // IndependentNonpersistent ...
    IndependentNonpersistent DiskIndependenceMode = "independent_nonpersistent"
    // IndependentPersistent ...
    IndependentPersistent DiskIndependenceMode = "independent_persistent"
    // Persistent ...
    Persistent DiskIndependenceMode = "persistent"
)

func PossibleDiskIndependenceModeValues Uses

func PossibleDiskIndependenceModeValues() []DiskIndependenceMode

PossibleDiskIndependenceModeValues returns an array of possible values for the DiskIndependenceMode const type.

type GuestOSCustomization Uses

type GuestOSCustomization struct {
    // DNSServers - List of dns servers to use
    DNSServers *[]string `json:"dnsServers,omitempty"`
    // HostName - Virtual Machine hostname
    HostName *string `json:"hostName,omitempty"`
    // Password - Password for login
    Password *string `json:"password,omitempty"`
    // PolicyID - id of customization policy
    PolicyID *string `json:"policyId,omitempty"`
    // Username - Username for login
    Username *string `json:"username,omitempty"`
}

GuestOSCustomization guest OS Customization properties

type GuestOSNICCustomization Uses

type GuestOSNICCustomization struct {
    // Allocation - IP address allocation method. Possible values include: 'Static', 'Dynamic'
    Allocation Allocation `json:"allocation,omitempty"`
    // DNSServers - List of dns servers to use
    DNSServers *[]string `json:"dnsServers,omitempty"`
    // Gateway - Gateway addresses assigned to nic
    Gateway *[]string `json:"gateway,omitempty"`
    // IPAddress - Static ip address for nic
    IPAddress *string `json:"ipAddress,omitempty"`
    // Mask - Network mask for nic
    Mask *string `json:"mask,omitempty"`
    // PrimaryWinsServer - primary WINS server for Windows
    PrimaryWinsServer *string `json:"primaryWinsServer,omitempty"`
    // SecondaryWinsServer - secondary WINS server for Windows
    SecondaryWinsServer *string `json:"secondaryWinsServer,omitempty"`
}

GuestOSNICCustomization guest OS nic customization

type GuestOSType Uses

type GuestOSType string

GuestOSType enumerates the values for guest os type.

const (
    // Linux ...
    Linux GuestOSType = "linux"
    // Other ...
    Other GuestOSType = "other"
    // Windows ...
    Windows GuestOSType = "windows"
)

func PossibleGuestOSTypeValues Uses

func PossibleGuestOSTypeValues() []GuestOSType

PossibleGuestOSTypeValues returns an array of possible values for the GuestOSType const type.

type NICType Uses

type NICType string

NICType enumerates the values for nic type.

const (
    // E1000 ...
    E1000 NICType = "E1000"
    // E1000E ...
    E1000E NICType = "E1000E"
    // PCNET32 ...
    PCNET32 NICType = "PCNET32"
    // VMXNET ...
    VMXNET NICType = "VMXNET"
    // VMXNET2 ...
    VMXNET2 NICType = "VMXNET2"
    // VMXNET3 ...
    VMXNET3 NICType = "VMXNET3"
)

func PossibleNICTypeValues Uses

func PossibleNICTypeValues() []NICType

PossibleNICTypeValues returns an array of possible values for the NICType const type.

type NodeStatus Uses

type NodeStatus string

NodeStatus enumerates the values for node status.

const (
    // Unused ...
    Unused NodeStatus = "unused"
    // Used ...
    Used NodeStatus = "used"
)

func PossibleNodeStatusValues Uses

func PossibleNodeStatusValues() []NodeStatus

PossibleNodeStatusValues returns an array of possible values for the NodeStatus const type.

type OnboardingStatus Uses

type OnboardingStatus string

OnboardingStatus enumerates the values for onboarding status.

const (
    // NotOnBoarded ...
    NotOnBoarded OnboardingStatus = "notOnBoarded"
    // OnBoarded ...
    OnBoarded OnboardingStatus = "onBoarded"
    // OnBoarding ...
    OnBoarding OnboardingStatus = "onBoarding"
    // OnBoardingFailed ...
    OnBoardingFailed OnboardingStatus = "onBoardingFailed"
)

func PossibleOnboardingStatusValues Uses

func PossibleOnboardingStatusValues() []OnboardingStatus

PossibleOnboardingStatusValues returns an array of possible values for the OnboardingStatus const type.

type OperationError Uses

type OperationError struct {
    // Code - Error's code
    Code *string `json:"code,omitempty"`
    // Message - Error's message
    Message *string `json:"message,omitempty"`
}

OperationError operation error model

type OperationOrigin Uses

type OperationOrigin string

OperationOrigin enumerates the values for operation origin.

const (
    // System ...
    System OperationOrigin = "system"
    // User ...
    User OperationOrigin = "user"
    // Usersystem ...
    Usersystem OperationOrigin = "user,system"
)

func PossibleOperationOriginValues Uses

func PossibleOperationOriginValues() []OperationOrigin

PossibleOperationOriginValues returns an array of possible values for the OperationOrigin const type.

type OperationResource Uses

type OperationResource struct {
    autorest.Response `json:"-"`
    // EndTime - READ-ONLY; End time of the operation
    EndTime *date.Time `json:"endTime,omitempty"`
    // Error - Error Message if operation failed
    Error *OperationError `json:"error,omitempty"`
    // ID - READ-ONLY; Operation Id
    ID  *string `json:"id,omitempty"`
    // Name - READ-ONLY; Operation ID
    Name *string `json:"name,omitempty"`
    // StartTime - READ-ONLY; Start time of the operation
    StartTime *date.Time `json:"startTime,omitempty"`
    // Status - READ-ONLY; Operation status
    Status *string `json:"status,omitempty"`
}

OperationResource operation status response

type OperationsClient Uses

type OperationsClient struct {
    BaseClient
}

OperationsClient is the description of the new service

func NewOperationsClient Uses

func NewOperationsClient(subscriptionID string, referer string) OperationsClient

NewOperationsClient creates an instance of the OperationsClient client.

func NewOperationsClientWithBaseURI Uses

func NewOperationsClientWithBaseURI(baseURI string, subscriptionID string, referer string) OperationsClient

NewOperationsClientWithBaseURI creates an instance of the OperationsClient client.

func (OperationsClient) Get Uses

func (client OperationsClient) Get(ctx context.Context, regionID string, operationID string) (result OperationResource, err error)

Get return an async operation Parameters: regionID - the region Id (westus, eastus) operationID - operation id

func (OperationsClient) GetPreparer Uses

func (client OperationsClient) GetPreparer(ctx context.Context, regionID string, operationID string) (*http.Request, error)

GetPreparer prepares the Get request.

func (OperationsClient) GetResponder Uses

func (client OperationsClient) GetResponder(resp *http.Response) (result OperationResource, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (OperationsClient) GetSender Uses

func (client OperationsClient) GetSender(req *http.Request) (*http.Response, error)

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

func (OperationsClient) List Uses

func (client OperationsClient) List(ctx context.Context) (result AvailableOperationsListResponsePage, err error)

List return list of operations

func (OperationsClient) ListComplete Uses

func (client OperationsClient) ListComplete(ctx context.Context) (result AvailableOperationsListResponseIterator, err error)

ListComplete enumerates all values, automatically crossing page boundaries as required.

func (OperationsClient) ListPreparer Uses

func (client OperationsClient) ListPreparer(ctx context.Context) (*http.Request, error)

ListPreparer prepares the List request.

func (OperationsClient) ListResponder Uses

func (client OperationsClient) ListResponder(resp *http.Response) (result AvailableOperationsListResponse, err error)

ListResponder handles the response to the List request. The method always closes the http.Response Body.

func (OperationsClient) ListSender Uses

func (client OperationsClient) ListSender(req *http.Request) (*http.Response, error)

ListSender sends the List request. The method will close the http.Response Body if it receives an error.

type PatchPayload Uses

type PatchPayload struct {
    // Tags - The tags key:value pairs
    Tags map[string]*string `json:"tags"`
}

PatchPayload general patch payload modal

func (PatchPayload) MarshalJSON Uses

func (pp PatchPayload) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for PatchPayload.

type PrivateCloud Uses

type PrivateCloud struct {
    autorest.Response `json:"-"`
    // ID - Azure Id, e.g. "/subscriptions/4da99247-a172-4ed6-8ae9-ebed2d12f839/providers/Microsoft.VMwareCloudSimple/privateClouds/cloud123"
    ID  *string `json:"id,omitempty"`
    // Location - Location where private cloud created, e.g "westus"
    Location *string `json:"location,omitempty"`
    // Name - Private cloud name
    Name *string `json:"name,omitempty"`
    // PrivateCloudProperties - Private cloud properties
    *PrivateCloudProperties `json:"properties,omitempty"`
    // Type - Azure Resource type. Possible values include: 'MicrosoftVMwareCloudSimpleprivateClouds'
    Type PrivateCloudResourceType `json:"type,omitempty"`
}

PrivateCloud private cloud model

func (PrivateCloud) MarshalJSON Uses

func (pc PrivateCloud) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for PrivateCloud.

func (*PrivateCloud) UnmarshalJSON Uses

func (pc *PrivateCloud) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for PrivateCloud struct.

type PrivateCloudList Uses

type PrivateCloudList struct {
    autorest.Response `json:"-"`
    // NextLink - Link for next list of Private Clouds
    NextLink *string `json:"nextLink,omitempty"`
    // Value - the list of private clouds
    Value *[]PrivateCloud `json:"value,omitempty"`
}

PrivateCloudList list of private clouds

func (PrivateCloudList) IsEmpty Uses

func (pcl PrivateCloudList) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type PrivateCloudListIterator Uses

type PrivateCloudListIterator struct {
    // contains filtered or unexported fields
}

PrivateCloudListIterator provides access to a complete listing of PrivateCloud values.

func NewPrivateCloudListIterator Uses

func NewPrivateCloudListIterator(page PrivateCloudListPage) PrivateCloudListIterator

Creates a new instance of the PrivateCloudListIterator type.

func (*PrivateCloudListIterator) Next Uses

func (iter *PrivateCloudListIterator) Next() error

Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*PrivateCloudListIterator) NextWithContext Uses

func (iter *PrivateCloudListIterator) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.

func (PrivateCloudListIterator) NotDone Uses

func (iter PrivateCloudListIterator) NotDone() bool

NotDone returns true if the enumeration should be started or is not yet complete.

func (PrivateCloudListIterator) Response Uses

func (iter PrivateCloudListIterator) Response() PrivateCloudList

Response returns the raw server response from the last page request.

func (PrivateCloudListIterator) Value Uses

func (iter PrivateCloudListIterator) Value() PrivateCloud

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type PrivateCloudListPage Uses

type PrivateCloudListPage struct {
    // contains filtered or unexported fields
}

PrivateCloudListPage contains a page of PrivateCloud values.

func NewPrivateCloudListPage Uses

func NewPrivateCloudListPage(getNextPage func(context.Context, PrivateCloudList) (PrivateCloudList, error)) PrivateCloudListPage

Creates a new instance of the PrivateCloudListPage type.

func (*PrivateCloudListPage) Next Uses

func (page *PrivateCloudListPage) Next() error

Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*PrivateCloudListPage) NextWithContext Uses

func (page *PrivateCloudListPage) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.

func (PrivateCloudListPage) NotDone Uses

func (page PrivateCloudListPage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (PrivateCloudListPage) Response Uses

func (page PrivateCloudListPage) Response() PrivateCloudList

Response returns the raw server response from the last page request.

func (PrivateCloudListPage) Values Uses

func (page PrivateCloudListPage) Values() []PrivateCloud

Values returns the slice of values for the current page or nil if there are no values.

type PrivateCloudProperties Uses

type PrivateCloudProperties struct {
    // AvailabilityZoneID - Availability Zone id, e.g. "az1"
    AvailabilityZoneID *string `json:"availabilityZoneId,omitempty"`
    // AvailabilityZoneName - Availability Zone name, e.g. "Availability Zone 1"
    AvailabilityZoneName *string `json:"availabilityZoneName,omitempty"`
    // ClustersNumber - Number of clusters
    ClustersNumber *int32 `json:"clustersNumber,omitempty"`
    // CreatedBy - User's emails who created cloud
    CreatedBy *string `json:"createdBy,omitempty"`
    // CreatedOn - When private cloud was created
    CreatedOn *date.Time `json:"createdOn,omitempty"`
    // DNSServers - Array of DNS servers
    DNSServers *[]string `json:"dnsServers,omitempty"`
    // Expires - Expiration date of PC
    Expires *string `json:"expires,omitempty"`
    // NsxType - Nsx Type, e.g. "Advanced"
    NsxType *string `json:"nsxType,omitempty"`
    // PlacementGroupID - Placement Group id, e.g. "n1"
    PlacementGroupID *string `json:"placementGroupId,omitempty"`
    // PlacementGroupName - Placement Group name
    PlacementGroupName *string `json:"placementGroupName,omitempty"`
    // PrivateCloudID - Id of a private cloud
    PrivateCloudID *uuid.UUID `json:"privateCloudId,omitempty"`
    // ResourcePools - The list of Resource Pools
    ResourcePools *[]ResourcePool `json:"resourcePools,omitempty"`
    // State - Private Cloud state, e.g. "operational"
    State *string `json:"state,omitempty"`
    // TotalCPUCores - Number of cores
    TotalCPUCores *int32 `json:"totalCpuCores,omitempty"`
    // TotalNodes - Number of nodes
    TotalNodes *int32 `json:"totalNodes,omitempty"`
    // TotalRAM - Memory size
    TotalRAM *int32 `json:"totalRam,omitempty"`
    // TotalStorage - Disk space in TB
    TotalStorage *float64 `json:"totalStorage,omitempty"`
    // Type - Virtualization type e.g. "vSphere"
    Type *string `json:"type,omitempty"`
    // VSphereVersion - e.g. "6.5u2"
    VSphereVersion *string `json:"vSphereVersion,omitempty"`
    // VcenterFqdn - FQDN for vcenter access
    VcenterFqdn *string `json:"vcenterFqdn,omitempty"`
    // VcenterRefid - Vcenter ip address
    VcenterRefid *string `json:"vcenterRefid,omitempty"`
    // VirtualMachineTemplates - The list of Virtual Machine Templates
    VirtualMachineTemplates *[]VirtualMachineTemplate `json:"virtualMachineTemplates,omitempty"`
    // VirtualNetworks - The list of Virtual Networks
    VirtualNetworks *[]VirtualNetwork `json:"virtualNetworks,omitempty"`
    // VrOpsEnabled - Is Vrops enabled/disabled
    VrOpsEnabled *bool `json:"vrOpsEnabled,omitempty"`
}

PrivateCloudProperties properties of private

type PrivateCloudResourceType Uses

type PrivateCloudResourceType string

PrivateCloudResourceType enumerates the values for private cloud resource type.

const (
    // MicrosoftVMwareCloudSimpleprivateClouds ...
    MicrosoftVMwareCloudSimpleprivateClouds PrivateCloudResourceType = "Microsoft.VMwareCloudSimple/privateClouds"
)

func PossiblePrivateCloudResourceTypeValues Uses

func PossiblePrivateCloudResourceTypeValues() []PrivateCloudResourceType

PossiblePrivateCloudResourceTypeValues returns an array of possible values for the PrivateCloudResourceType const type.

type PrivateCloudsClient Uses

type PrivateCloudsClient struct {
    BaseClient
}

PrivateCloudsClient is the description of the new service

func NewPrivateCloudsClient Uses

func NewPrivateCloudsClient(subscriptionID string, referer string) PrivateCloudsClient

NewPrivateCloudsClient creates an instance of the PrivateCloudsClient client.

func NewPrivateCloudsClientWithBaseURI Uses

func NewPrivateCloudsClientWithBaseURI(baseURI string, subscriptionID string, referer string) PrivateCloudsClient

NewPrivateCloudsClientWithBaseURI creates an instance of the PrivateCloudsClient client.

func (PrivateCloudsClient) Get Uses

func (client PrivateCloudsClient) Get(ctx context.Context, pcName string, regionID string) (result PrivateCloud, err error)

Get returns private cloud by its name Parameters: pcName - the private cloud name regionID - the region Id (westus, eastus)

func (PrivateCloudsClient) GetPreparer Uses

func (client PrivateCloudsClient) GetPreparer(ctx context.Context, pcName string, regionID string) (*http.Request, error)

GetPreparer prepares the Get request.

func (PrivateCloudsClient) GetResponder Uses

func (client PrivateCloudsClient) GetResponder(resp *http.Response) (result PrivateCloud, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (PrivateCloudsClient) GetSender Uses

func (client PrivateCloudsClient) GetSender(req *http.Request) (*http.Response, error)

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

func (PrivateCloudsClient) List Uses

func (client PrivateCloudsClient) List(ctx context.Context, regionID string) (result PrivateCloudListPage, err error)

List returns list of private clouds in particular region Parameters: regionID - the region Id (westus, eastus)

func (PrivateCloudsClient) ListComplete Uses

func (client PrivateCloudsClient) ListComplete(ctx context.Context, regionID string) (result PrivateCloudListIterator, err error)

ListComplete enumerates all values, automatically crossing page boundaries as required.

func (PrivateCloudsClient) ListPreparer Uses

func (client PrivateCloudsClient) ListPreparer(ctx context.Context, regionID string) (*http.Request, error)

ListPreparer prepares the List request.

func (PrivateCloudsClient) ListResponder Uses

func (client PrivateCloudsClient) ListResponder(resp *http.Response) (result PrivateCloudList, err error)

ListResponder handles the response to the List request. The method always closes the http.Response Body.

func (PrivateCloudsClient) ListSender Uses

func (client PrivateCloudsClient) ListSender(req *http.Request) (*http.Response, error)

ListSender sends the List request. The method will close the http.Response Body if it receives an error.

type ResourcePool Uses

type ResourcePool struct {
    autorest.Response `json:"-"`
    // ID - resource pool id (privateCloudId:vsphereId)
    ID  *string `json:"id,omitempty"`
    // Location - READ-ONLY; Azure region
    Location *string `json:"location,omitempty"`
    // Name - READ-ONLY; {ResourcePoolName}
    Name *string `json:"name,omitempty"`
    // PrivateCloudID - READ-ONLY; The Private Cloud Id
    PrivateCloudID *string `json:"privateCloudId,omitempty"`
    // ResourcePoolProperties - Resource pool properties
    *ResourcePoolProperties `json:"properties,omitempty"`
    // Type - READ-ONLY; {resourceProviderNamespace}/{resourceType}
    Type *string `json:"type,omitempty"`
}

ResourcePool resource pool model

func (ResourcePool) MarshalJSON Uses

func (rp ResourcePool) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ResourcePool.

func (*ResourcePool) UnmarshalJSON Uses

func (rp *ResourcePool) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for ResourcePool struct.

type ResourcePoolProperties Uses

type ResourcePoolProperties struct {
    // FullName - READ-ONLY; Hierarchical resource pool name
    FullName *string `json:"fullName,omitempty"`
}

ResourcePoolProperties properties of resource pool

type ResourcePoolsClient Uses

type ResourcePoolsClient struct {
    BaseClient
}

ResourcePoolsClient is the description of the new service

func NewResourcePoolsClient Uses

func NewResourcePoolsClient(subscriptionID string, referer string) ResourcePoolsClient

NewResourcePoolsClient creates an instance of the ResourcePoolsClient client.

func NewResourcePoolsClientWithBaseURI Uses

func NewResourcePoolsClientWithBaseURI(baseURI string, subscriptionID string, referer string) ResourcePoolsClient

NewResourcePoolsClientWithBaseURI creates an instance of the ResourcePoolsClient client.

func (ResourcePoolsClient) Get Uses

func (client ResourcePoolsClient) Get(ctx context.Context, regionID string, pcName string, resourcePoolName string) (result ResourcePool, err error)

Get returns resource pool templates by its name Parameters: regionID - the region Id (westus, eastus) pcName - the private cloud name resourcePoolName - resource pool id (vsphereId)

func (ResourcePoolsClient) GetPreparer Uses

func (client ResourcePoolsClient) GetPreparer(ctx context.Context, regionID string, pcName string, resourcePoolName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (ResourcePoolsClient) GetResponder Uses

func (client ResourcePoolsClient) GetResponder(resp *http.Response) (result ResourcePool, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (ResourcePoolsClient) GetSender Uses

func (client ResourcePoolsClient) GetSender(req *http.Request) (*http.Response, error)

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

func (ResourcePoolsClient) List Uses

func (client ResourcePoolsClient) List(ctx context.Context, regionID string, pcName string) (result ResourcePoolsListResponsePage, err error)

List returns list of resource pools in region for private cloud Parameters: regionID - the region Id (westus, eastus) pcName - the private cloud name

func (ResourcePoolsClient) ListComplete Uses

func (client ResourcePoolsClient) ListComplete(ctx context.Context, regionID string, pcName string) (result ResourcePoolsListResponseIterator, err error)

ListComplete enumerates all values, automatically crossing page boundaries as required.

func (ResourcePoolsClient) ListPreparer Uses

func (client ResourcePoolsClient) ListPreparer(ctx context.Context, regionID string, pcName string) (*http.Request, error)

ListPreparer prepares the List request.

func (ResourcePoolsClient) ListResponder Uses

func (client ResourcePoolsClient) ListResponder(resp *http.Response) (result ResourcePoolsListResponse, err error)

ListResponder handles the response to the List request. The method always closes the http.Response Body.

func (ResourcePoolsClient) ListSender Uses

func (client ResourcePoolsClient) ListSender(req *http.Request) (*http.Response, error)

ListSender sends the List request. The method will close the http.Response Body if it receives an error.

type ResourcePoolsListResponse Uses

type ResourcePoolsListResponse struct {
    autorest.Response `json:"-"`
    // NextLink - Link for next list of ResourcePoolsList
    NextLink *string `json:"nextLink,omitempty"`
    // Value - Results of the Resource pools list
    Value *[]ResourcePool `json:"value,omitempty"`
}

ResourcePoolsListResponse list of resource pools response model

func (ResourcePoolsListResponse) IsEmpty Uses

func (rplr ResourcePoolsListResponse) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type ResourcePoolsListResponseIterator Uses

type ResourcePoolsListResponseIterator struct {
    // contains filtered or unexported fields
}

ResourcePoolsListResponseIterator provides access to a complete listing of ResourcePool values.

func NewResourcePoolsListResponseIterator Uses

func NewResourcePoolsListResponseIterator(page ResourcePoolsListResponsePage) ResourcePoolsListResponseIterator

Creates a new instance of the ResourcePoolsListResponseIterator type.

func (*ResourcePoolsListResponseIterator) Next Uses

func (iter *ResourcePoolsListResponseIterator) Next() error

Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*ResourcePoolsListResponseIterator) NextWithContext Uses

func (iter *ResourcePoolsListResponseIterator) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.

func (ResourcePoolsListResponseIterator) NotDone Uses

func (iter ResourcePoolsListResponseIterator) NotDone() bool

NotDone returns true if the enumeration should be started or is not yet complete.

func (ResourcePoolsListResponseIterator) Response Uses

func (iter ResourcePoolsListResponseIterator) Response() ResourcePoolsListResponse

Response returns the raw server response from the last page request.

func (ResourcePoolsListResponseIterator) Value Uses

func (iter ResourcePoolsListResponseIterator) Value() ResourcePool

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type ResourcePoolsListResponsePage Uses

type ResourcePoolsListResponsePage struct {
    // contains filtered or unexported fields
}

ResourcePoolsListResponsePage contains a page of ResourcePool values.

func NewResourcePoolsListResponsePage Uses

func NewResourcePoolsListResponsePage(getNextPage func(context.Context, ResourcePoolsListResponse) (ResourcePoolsListResponse, error)) ResourcePoolsListResponsePage

Creates a new instance of the ResourcePoolsListResponsePage type.

func (*ResourcePoolsListResponsePage) Next Uses

func (page *ResourcePoolsListResponsePage) Next() error

Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*ResourcePoolsListResponsePage) NextWithContext Uses

func (page *ResourcePoolsListResponsePage) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.

func (ResourcePoolsListResponsePage) NotDone Uses

func (page ResourcePoolsListResponsePage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (ResourcePoolsListResponsePage) Response Uses

func (page ResourcePoolsListResponsePage) Response() ResourcePoolsListResponse

Response returns the raw server response from the last page request.

func (ResourcePoolsListResponsePage) Values Uses

func (page ResourcePoolsListResponsePage) Values() []ResourcePool

Values returns the slice of values for the current page or nil if there are no values.

type Sku Uses

type Sku struct {
    // Capacity - The capacity of the SKU
    Capacity *string `json:"capacity,omitempty"`
    // Description - dedicatedCloudNode example: 8 x Ten-Core Intel® Xeon® Processor E5-2640 v4 2.40GHz 25MB Cache (90W); 12 x 64GB PC4-19200 2400MHz DDR4 ECC Registered DIMM, ...
    Description *string `json:"description,omitempty"`
    // Family - If the service has different generations of hardware, for the same SKU, then that can be captured here
    Family *string `json:"family,omitempty"`
    // Name - The name of the SKU for VMWare CloudSimple Node
    Name *string `json:"name,omitempty"`
    // Tier - The tier of the SKU
    Tier *string `json:"tier,omitempty"`
}

Sku the purchase SKU for CloudSimple paid resources

type SkuAvailability Uses

type SkuAvailability struct {
    // DedicatedAvailabilityZoneID - CloudSimple Availability Zone id
    DedicatedAvailabilityZoneID *string `json:"dedicatedAvailabilityZoneId,omitempty"`
    // DedicatedAvailabilityZoneName - CloudSimple Availability Zone Name
    DedicatedAvailabilityZoneName *string `json:"dedicatedAvailabilityZoneName,omitempty"`
    // DedicatedPlacementGroupID - CloudSimple Placement Group Id
    DedicatedPlacementGroupID *string `json:"dedicatedPlacementGroupId,omitempty"`
    // DedicatedPlacementGroupName - CloudSimple Placement Group name
    DedicatedPlacementGroupName *string `json:"dedicatedPlacementGroupName,omitempty"`
    // Limit - indicates how many resources of a given SKU is available in a AZ->PG
    Limit *int32 `json:"limit,omitempty"`
    // ResourceType - resource type e.g. DedicatedCloudNodes
    ResourceType *string `json:"resourceType,omitempty"`
    // SkuID - sku id
    SkuID *string `json:"skuId,omitempty"`
    // SkuName - sku name
    SkuName *string `json:"skuName,omitempty"`
}

SkuAvailability SKU availability model

type SkuAvailabilityListResponse Uses

type SkuAvailabilityListResponse struct {
    autorest.Response `json:"-"`
    // NextLink - Link for next list of DedicatedCloudNode
    NextLink *string `json:"nextLink,omitempty"`
    // Value - Results of the DedicatedPlacementGroupSkuAvailability list
    Value *[]SkuAvailability `json:"value,omitempty"`
}

SkuAvailabilityListResponse list of SKU availabilities

func (SkuAvailabilityListResponse) IsEmpty Uses

func (salr SkuAvailabilityListResponse) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type SkuAvailabilityListResponseIterator Uses

type SkuAvailabilityListResponseIterator struct {
    // contains filtered or unexported fields
}

SkuAvailabilityListResponseIterator provides access to a complete listing of SkuAvailability values.

func NewSkuAvailabilityListResponseIterator Uses

func NewSkuAvailabilityListResponseIterator(page SkuAvailabilityListResponsePage) SkuAvailabilityListResponseIterator

Creates a new instance of the SkuAvailabilityListResponseIterator type.

func (*SkuAvailabilityListResponseIterator) Next Uses

func (iter *SkuAvailabilityListResponseIterator) Next() error

Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*SkuAvailabilityListResponseIterator) NextWithContext Uses

func (iter *SkuAvailabilityListResponseIterator) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.

func (SkuAvailabilityListResponseIterator) NotDone Uses

func (iter SkuAvailabilityListResponseIterator) NotDone() bool

NotDone returns true if the enumeration should be started or is not yet complete.

func (SkuAvailabilityListResponseIterator) Response Uses

func (iter SkuAvailabilityListResponseIterator) Response() SkuAvailabilityListResponse

Response returns the raw server response from the last page request.

func (SkuAvailabilityListResponseIterator) Value Uses

func (iter SkuAvailabilityListResponseIterator) Value() SkuAvailability

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type SkuAvailabilityListResponsePage Uses

type SkuAvailabilityListResponsePage struct {
    // contains filtered or unexported fields
}

SkuAvailabilityListResponsePage contains a page of SkuAvailability values.

func NewSkuAvailabilityListResponsePage Uses

func NewSkuAvailabilityListResponsePage(getNextPage func(context.Context, SkuAvailabilityListResponse) (SkuAvailabilityListResponse, error)) SkuAvailabilityListResponsePage

Creates a new instance of the SkuAvailabilityListResponsePage type.

func (*SkuAvailabilityListResponsePage) Next Uses

func (page *SkuAvailabilityListResponsePage) Next() error

Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*SkuAvailabilityListResponsePage) NextWithContext Uses

func (page *SkuAvailabilityListResponsePage) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.

func (SkuAvailabilityListResponsePage) NotDone Uses

func (page SkuAvailabilityListResponsePage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (SkuAvailabilityListResponsePage) Response Uses

func (page SkuAvailabilityListResponsePage) Response() SkuAvailabilityListResponse

Response returns the raw server response from the last page request.

func (SkuAvailabilityListResponsePage) Values Uses

func (page SkuAvailabilityListResponsePage) Values() []SkuAvailability

Values returns the slice of values for the current page or nil if there are no values.

type SkuDescription Uses

type SkuDescription struct {
    // ID - SKU's id
    ID  *string `json:"id,omitempty"`
    // Name - SKU's name
    Name *string `json:"name,omitempty"`
}

SkuDescription the purchase SKU for CloudSimple paid resources

type SkusAvailabilityClient Uses

type SkusAvailabilityClient struct {
    BaseClient
}

SkusAvailabilityClient is the description of the new service

func NewSkusAvailabilityClient Uses

func NewSkusAvailabilityClient(subscriptionID string, referer string) SkusAvailabilityClient

NewSkusAvailabilityClient creates an instance of the SkusAvailabilityClient client.

func NewSkusAvailabilityClientWithBaseURI Uses

func NewSkusAvailabilityClientWithBaseURI(baseURI string, subscriptionID string, referer string) SkusAvailabilityClient

NewSkusAvailabilityClientWithBaseURI creates an instance of the SkusAvailabilityClient client.

func (SkusAvailabilityClient) List Uses

func (client SkusAvailabilityClient) List(ctx context.Context, regionID string, skuID string) (result SkuAvailabilityListResponsePage, err error)

List returns list of available resources in region Parameters: regionID - the region Id (westus, eastus) skuID - sku id, if no sku is passed availability for all skus will be returned

func (SkusAvailabilityClient) ListComplete Uses

func (client SkusAvailabilityClient) ListComplete(ctx context.Context, regionID string, skuID string) (result SkuAvailabilityListResponseIterator, err error)

ListComplete enumerates all values, automatically crossing page boundaries as required.

func (SkusAvailabilityClient) ListPreparer Uses

func (client SkusAvailabilityClient) ListPreparer(ctx context.Context, regionID string, skuID string) (*http.Request, error)

ListPreparer prepares the List request.

func (SkusAvailabilityClient) ListResponder Uses

func (client SkusAvailabilityClient) ListResponder(resp *http.Response) (result SkuAvailabilityListResponse, err error)

ListResponder handles the response to the List request. The method always closes the http.Response Body.

func (SkusAvailabilityClient) ListSender Uses

func (client SkusAvailabilityClient) ListSender(req *http.Request) (*http.Response, error)

ListSender sends the List request. The method will close the http.Response Body if it receives an error.

type StopMode Uses

type StopMode string

StopMode enumerates the values for stop mode.

const (
    // Poweroff ...
    Poweroff StopMode = "poweroff"
    // Reboot ...
    Reboot StopMode = "reboot"
    // Shutdown ...
    Shutdown StopMode = "shutdown"
    // Suspend ...
    Suspend StopMode = "suspend"
)

func PossibleStopModeValues Uses

func PossibleStopModeValues() []StopMode

PossibleStopModeValues returns an array of possible values for the StopMode const type.

type Type Uses

type Type string

Type enumerates the values for type.

const (
    // CUSTOMNAME ...
    CUSTOMNAME Type = "CUSTOM_NAME"
    // FIXED ...
    FIXED Type = "FIXED"
    // PREFIXBASED ...
    PREFIXBASED Type = "PREFIX_BASED"
    // USERDEFINED ...
    USERDEFINED Type = "USER_DEFINED"
    // VIRTUALMACHINENAME ...
    VIRTUALMACHINENAME Type = "VIRTUAL_MACHINE_NAME"
)

func PossibleTypeValues Uses

func PossibleTypeValues() []Type

PossibleTypeValues returns an array of possible values for the Type const type.

type Type1 Uses

type Type1 string

Type1 enumerates the values for type 1.

const (
    // Type1CUSTOM ...
    Type1CUSTOM Type1 = "CUSTOM"
    // Type1DHCPIP ...
    Type1DHCPIP Type1 = "DHCP_IP"
    // Type1FIXEDIP ...
    Type1FIXEDIP Type1 = "FIXED_IP"
    // Type1USERDEFINED ...
    Type1USERDEFINED Type1 = "USER_DEFINED"
)

func PossibleType1Values Uses

func PossibleType1Values() []Type1

PossibleType1Values returns an array of possible values for the Type1 const type.

type Type2 Uses

type Type2 string

Type2 enumerates the values for type 2.

const (
    // LINUX ...
    LINUX Type2 = "LINUX"
    // WINDOWS ...
    WINDOWS Type2 = "WINDOWS"
    // WINDOWSTEXT ...
    WINDOWSTEXT Type2 = "WINDOWS_TEXT"
)

func PossibleType2Values Uses

func PossibleType2Values() []Type2

PossibleType2Values returns an array of possible values for the Type2 const type.

type Type3 Uses

type Type3 string

Type3 enumerates the values for type 3.

const (
    // Type3LINUX ...
    Type3LINUX Type3 = "LINUX"
    // Type3WINDOWS ...
    Type3WINDOWS Type3 = "WINDOWS"
)

func PossibleType3Values Uses

func PossibleType3Values() []Type3

PossibleType3Values returns an array of possible values for the Type3 const type.

type Usage Uses

type Usage struct {
    // CurrentValue - The current usage value
    CurrentValue *int32 `json:"currentValue,omitempty"`
    // Limit - limit of a given sku in a region for a subscription. The maximum permitted value for the usage quota. If there is no limit, this value will be -1
    Limit *int32 `json:"limit,omitempty"`
    // Name - Usage name value and localized name
    Name *UsageName `json:"name,omitempty"`
    // Unit - The usages' unit. Possible values include: 'Count', 'Bytes', 'Seconds', 'Percent', 'CountPerSecond', 'BytesPerSecond'
    Unit UsageCount `json:"unit,omitempty"`
}

Usage usage model

type UsageCount Uses

type UsageCount string

UsageCount enumerates the values for usage count.

const (
    // Bytes ...
    Bytes UsageCount = "Bytes"
    // BytesPerSecond ...
    BytesPerSecond UsageCount = "BytesPerSecond"
    // Count ...
    Count UsageCount = "Count"
    // CountPerSecond ...
    CountPerSecond UsageCount = "CountPerSecond"
    // Percent ...
    Percent UsageCount = "Percent"
    // Seconds ...
    Seconds UsageCount = "Seconds"
)

func PossibleUsageCountValues Uses

func PossibleUsageCountValues() []UsageCount

PossibleUsageCountValues returns an array of possible values for the UsageCount const type.

type UsageListResponse Uses

type UsageListResponse struct {
    autorest.Response `json:"-"`
    // NextLink - Link for next list of DedicatedCloudNode
    NextLink *string `json:"nextLink,omitempty"`
    // Value - READ-ONLY; The list of usages
    Value *[]Usage `json:"value,omitempty"`
}

UsageListResponse list of usages

func (UsageListResponse) IsEmpty Uses

func (ulr UsageListResponse) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type UsageListResponseIterator Uses

type UsageListResponseIterator struct {
    // contains filtered or unexported fields
}

UsageListResponseIterator provides access to a complete listing of Usage values.

func NewUsageListResponseIterator Uses

func NewUsageListResponseIterator(page UsageListResponsePage) UsageListResponseIterator

Creates a new instance of the UsageListResponseIterator type.

func (*UsageListResponseIterator) Next Uses

func (iter *UsageListResponseIterator) Next() error

Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*UsageListResponseIterator) NextWithContext Uses

func (iter *UsageListResponseIterator) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.

func (UsageListResponseIterator) NotDone Uses

func (iter UsageListResponseIterator) NotDone() bool

NotDone returns true if the enumeration should be started or is not yet complete.

func (UsageListResponseIterator) Response Uses

func (iter UsageListResponseIterator) Response() UsageListResponse

Response returns the raw server response from the last page request.

func (UsageListResponseIterator) Value Uses

func (iter UsageListResponseIterator) Value() Usage

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type UsageListResponsePage Uses

type UsageListResponsePage struct {
    // contains filtered or unexported fields
}

UsageListResponsePage contains a page of Usage values.

func NewUsageListResponsePage Uses

func NewUsageListResponsePage(getNextPage func(context.Context, UsageListResponse) (UsageListResponse, error)) UsageListResponsePage

Creates a new instance of the UsageListResponsePage type.

func (*UsageListResponsePage) Next Uses

func (page *UsageListResponsePage) Next() error

Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*UsageListResponsePage) NextWithContext Uses

func (page *UsageListResponsePage) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.

func (UsageListResponsePage) NotDone Uses

func (page UsageListResponsePage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (UsageListResponsePage) Response Uses

func (page UsageListResponsePage) Response() UsageListResponse

Response returns the raw server response from the last page request.

func (UsageListResponsePage) Values Uses

func (page UsageListResponsePage) Values() []Usage

Values returns the slice of values for the current page or nil if there are no values.

type UsageName Uses

type UsageName struct {
    // LocalizedValue - e.g. "Virtual Machines"
    LocalizedValue *string `json:"localizedValue,omitempty"`
    // Value - resource type or resource type sku name, e.g. virtualMachines
    Value *string `json:"value,omitempty"`
}

UsageName user name model

type UsagesClient Uses

type UsagesClient struct {
    BaseClient
}

UsagesClient is the description of the new service

func NewUsagesClient Uses

func NewUsagesClient(subscriptionID string, referer string) UsagesClient

NewUsagesClient creates an instance of the UsagesClient client.

func NewUsagesClientWithBaseURI Uses

func NewUsagesClientWithBaseURI(baseURI string, subscriptionID string, referer string) UsagesClient

NewUsagesClientWithBaseURI creates an instance of the UsagesClient client.

func (UsagesClient) List Uses

func (client UsagesClient) List(ctx context.Context, regionID string, filter string) (result UsageListResponsePage, err error)

List returns list of usage in region Parameters: regionID - the region Id (westus, eastus) filter - the filter to apply on the list operation. only name.value is allowed here as a filter e.g. $filter=name.value eq 'xxxx'

func (UsagesClient) ListComplete Uses

func (client UsagesClient) ListComplete(ctx context.Context, regionID string, filter string) (result UsageListResponseIterator, err error)

ListComplete enumerates all values, automatically crossing page boundaries as required.

func (UsagesClient) ListPreparer Uses

func (client UsagesClient) ListPreparer(ctx context.Context, regionID string, filter string) (*http.Request, error)

ListPreparer prepares the List request.

func (UsagesClient) ListResponder Uses

func (client UsagesClient) ListResponder(resp *http.Response) (result UsageListResponse, err error)

ListResponder handles the response to the List request. The method always closes the http.Response Body.

func (UsagesClient) ListSender Uses

func (client UsagesClient) ListSender(req *http.Request) (*http.Response, error)

ListSender sends the List request. The method will close the http.Response Body if it receives an error.

type VirtualDisk Uses

type VirtualDisk struct {
    // ControllerID - Disk's Controller id
    ControllerID *string `json:"controllerId,omitempty"`
    // IndependenceMode - Disk's independence mode type. Possible values include: 'Persistent', 'IndependentPersistent', 'IndependentNonpersistent'
    IndependenceMode DiskIndependenceMode `json:"independenceMode,omitempty"`
    // TotalSize - Disk's total size
    TotalSize *int32 `json:"totalSize,omitempty"`
    // VirtualDiskID - Disk's id
    VirtualDiskID *string `json:"virtualDiskId,omitempty"`
    // VirtualDiskName - READ-ONLY; Disk's display name
    VirtualDiskName *string `json:"virtualDiskName,omitempty"`
}

VirtualDisk virtual disk model

type VirtualDiskController Uses

type VirtualDiskController struct {
    // ID - READ-ONLY; Controller's id
    ID  *string `json:"id,omitempty"`
    // Name - READ-ONLY; The display name of Controller
    Name *string `json:"name,omitempty"`
    // SubType - READ-ONLY; dik controller subtype (VMWARE_PARAVIRTUAL, BUS_PARALLEL, LSI_PARALLEL, LSI_SAS)
    SubType *string `json:"subType,omitempty"`
    // Type - READ-ONLY; disk controller type (SCSI)
    Type *string `json:"type,omitempty"`
}

VirtualDiskController virtual disk controller model

type VirtualMachine Uses

type VirtualMachine struct {
    autorest.Response `json:"-"`
    // ID - READ-ONLY; /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/virtualMachines/{virtualMachineName}
    ID  *string `json:"id,omitempty"`
    // Location - Azure region
    Location *string `json:"location,omitempty"`
    // Name - READ-ONLY; {virtualMachineName}
    Name *string `json:"name,omitempty"`
    // VirtualMachineProperties - Virtual machine properties
    *VirtualMachineProperties `json:"properties,omitempty"`
    // Tags - The list of tags
    Tags map[string]*string `json:"tags"`
    // Type - READ-ONLY; {resourceProviderNamespace}/{resourceType}
    Type *string `json:"type,omitempty"`
}

VirtualMachine virtual machine model

func (VirtualMachine) MarshalJSON Uses

func (VM VirtualMachine) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for VirtualMachine.

func (*VirtualMachine) UnmarshalJSON Uses

func (VM *VirtualMachine) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for VirtualMachine struct.

type VirtualMachineListResponse Uses

type VirtualMachineListResponse struct {
    autorest.Response `json:"-"`
    // NextLink - Link for next list of VirtualMachines
    NextLink *string `json:"nextLink,omitempty"`
    // Value - Results of the VirtualMachine list
    Value *[]VirtualMachine `json:"value,omitempty"`
}

VirtualMachineListResponse list of virtual machines

func (VirtualMachineListResponse) IsEmpty Uses

func (vmlr VirtualMachineListResponse) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type VirtualMachineListResponseIterator Uses

type VirtualMachineListResponseIterator struct {
    // contains filtered or unexported fields
}

VirtualMachineListResponseIterator provides access to a complete listing of VirtualMachine values.

func NewVirtualMachineListResponseIterator Uses

func NewVirtualMachineListResponseIterator(page VirtualMachineListResponsePage) VirtualMachineListResponseIterator

Creates a new instance of the VirtualMachineListResponseIterator type.

func (*VirtualMachineListResponseIterator) Next Uses

func (iter *VirtualMachineListResponseIterator) Next() error

Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*VirtualMachineListResponseIterator) NextWithContext Uses

func (iter *VirtualMachineListResponseIterator) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.

func (VirtualMachineListResponseIterator) NotDone Uses

func (iter VirtualMachineListResponseIterator) NotDone() bool

NotDone returns true if the enumeration should be started or is not yet complete.

func (VirtualMachineListResponseIterator) Response Uses

func (iter VirtualMachineListResponseIterator) Response() VirtualMachineListResponse

Response returns the raw server response from the last page request.

func (VirtualMachineListResponseIterator) Value Uses

func (iter VirtualMachineListResponseIterator) Value() VirtualMachine

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type VirtualMachineListResponsePage Uses

type VirtualMachineListResponsePage struct {
    // contains filtered or unexported fields
}

VirtualMachineListResponsePage contains a page of VirtualMachine values.

func NewVirtualMachineListResponsePage Uses

func NewVirtualMachineListResponsePage(getNextPage func(context.Context, VirtualMachineListResponse) (VirtualMachineListResponse, error)) VirtualMachineListResponsePage

Creates a new instance of the VirtualMachineListResponsePage type.

func (*VirtualMachineListResponsePage) Next Uses

func (page *VirtualMachineListResponsePage) Next() error

Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*VirtualMachineListResponsePage) NextWithContext Uses

func (page *VirtualMachineListResponsePage) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.

func (VirtualMachineListResponsePage) NotDone Uses

func (page VirtualMachineListResponsePage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (VirtualMachineListResponsePage) Response Uses

func (page VirtualMachineListResponsePage) Response() VirtualMachineListResponse

Response returns the raw server response from the last page request.

func (VirtualMachineListResponsePage) Values Uses

func (page VirtualMachineListResponsePage) Values() []VirtualMachine

Values returns the slice of values for the current page or nil if there are no values.

type VirtualMachineProperties Uses

type VirtualMachineProperties struct {
    // AmountOfRAM - The amount of memory
    AmountOfRAM *int32 `json:"amountOfRam,omitempty"`
    // Controllers - READ-ONLY; The list of Virtual Disks' Controllers
    Controllers *[]VirtualDiskController `json:"controllers,omitempty"`
    // Customization - Virtual machine properties
    Customization *GuestOSCustomization `json:"customization,omitempty"`
    // Disks - The list of Virtual Disks
    Disks *[]VirtualDisk `json:"disks,omitempty"`
    // Dnsname - READ-ONLY; The DNS name of Virtual Machine in VCenter
    Dnsname *string `json:"dnsname,omitempty"`
    // ExposeToGuestVM - Expose Guest OS or not
    ExposeToGuestVM *bool `json:"exposeToGuestVM,omitempty"`
    // Folder - READ-ONLY; The path to virtual machine folder in VCenter
    Folder *string `json:"folder,omitempty"`
    // GuestOS - READ-ONLY; The name of Guest OS
    GuestOS *string `json:"guestOS,omitempty"`
    // GuestOSType - READ-ONLY; The Guest OS type. Possible values include: 'Linux', 'Windows', 'Other'
    GuestOSType GuestOSType `json:"guestOSType,omitempty"`
    // Nics - The list of Virtual NICs
    Nics *[]VirtualNic `json:"nics,omitempty"`
    // NumberOfCores - The number of CPU cores
    NumberOfCores *int32 `json:"numberOfCores,omitempty"`
    // Password - Password for login. Deprecated - use customization property
    Password *string `json:"password,omitempty"`
    // PrivateCloudID - Private Cloud Id
    PrivateCloudID *string `json:"privateCloudId,omitempty"`
    // ProvisioningState - READ-ONLY; The provisioning status of the resource
    ProvisioningState *string `json:"provisioningState,omitempty"`
    // PublicIP - READ-ONLY; The public ip of Virtual Machine
    PublicIP *string `json:"publicIP,omitempty"`
    // ResourcePool - Virtual Machines Resource Pool
    ResourcePool *ResourcePool `json:"resourcePool,omitempty"`
    // Status - READ-ONLY; The status of Virtual machine. Possible values include: 'Running', 'Suspended', 'Poweredoff', 'Updating', 'Deallocating', 'Deleting'
    Status VirtualMachineStatus `json:"status,omitempty"`
    // TemplateID - Virtual Machine Template Id
    TemplateID *string `json:"templateId,omitempty"`
    // Username - Username for login. Deprecated - use customization property
    Username *string `json:"username,omitempty"`
    // VSphereNetworks - The list of Virtual VSphere Networks
    VSphereNetworks *[]string `json:"vSphereNetworks,omitempty"`
    // VMID - READ-ONLY; The internal id of Virtual Machine in VCenter
    VMID *string `json:"vmId,omitempty"`
    // Vmwaretools - READ-ONLY; VMware tools version
    Vmwaretools *string `json:"vmwaretools,omitempty"`
}

VirtualMachineProperties properties of virtual machine

type VirtualMachineStatus Uses

type VirtualMachineStatus string

VirtualMachineStatus enumerates the values for virtual machine status.

const (
    // Deallocating ...
    Deallocating VirtualMachineStatus = "deallocating"
    // Deleting ...
    Deleting VirtualMachineStatus = "deleting"
    // Poweredoff ...
    Poweredoff VirtualMachineStatus = "poweredoff"
    // Running ...
    Running VirtualMachineStatus = "running"
    // Suspended ...
    Suspended VirtualMachineStatus = "suspended"
    // Updating ...
    Updating VirtualMachineStatus = "updating"
)

func PossibleVirtualMachineStatusValues Uses

func PossibleVirtualMachineStatusValues() []VirtualMachineStatus

PossibleVirtualMachineStatusValues returns an array of possible values for the VirtualMachineStatus const type.

type VirtualMachineStopMode Uses

type VirtualMachineStopMode struct {
    // Mode - mode indicates a type of stop operation - reboot, suspend, shutdown or power-off. Possible values include: 'Reboot', 'Suspend', 'Shutdown', 'Poweroff'
    Mode StopMode `json:"mode,omitempty"`
}

VirtualMachineStopMode list of virtual machine stop modes

type VirtualMachineTemplate Uses

type VirtualMachineTemplate struct {
    autorest.Response `json:"-"`
    // ID - READ-ONLY; virtual machine template id (privateCloudId:vsphereId)
    ID  *string `json:"id,omitempty"`
    // Location - Azure region
    Location *string `json:"location,omitempty"`
    // Name - READ-ONLY; {virtualMachineTemplateName}
    Name *string `json:"name,omitempty"`
    // VirtualMachineTemplateProperties - The Virtual Machine Template properties
    *VirtualMachineTemplateProperties `json:"properties,omitempty"`
    // Type - READ-ONLY; {resourceProviderNamespace}/{resourceType}
    Type *string `json:"type,omitempty"`
}

VirtualMachineTemplate virtual machine template model

func (VirtualMachineTemplate) MarshalJSON Uses

func (vmt VirtualMachineTemplate) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for VirtualMachineTemplate.

func (*VirtualMachineTemplate) UnmarshalJSON Uses

func (vmt *VirtualMachineTemplate) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for VirtualMachineTemplate struct.

type VirtualMachineTemplateListResponse Uses

type VirtualMachineTemplateListResponse struct {
    autorest.Response `json:"-"`
    // NextLink - Link for next list of VirtualMachineTemplate
    NextLink *string `json:"nextLink,omitempty"`
    // Value - Results of the VM template list
    Value *[]VirtualMachineTemplate `json:"value,omitempty"`
}

VirtualMachineTemplateListResponse list of virtual machine templates

func (VirtualMachineTemplateListResponse) IsEmpty Uses

func (vmtlr VirtualMachineTemplateListResponse) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type VirtualMachineTemplateListResponseIterator Uses

type VirtualMachineTemplateListResponseIterator struct {
    // contains filtered or unexported fields
}

VirtualMachineTemplateListResponseIterator provides access to a complete listing of VirtualMachineTemplate values.

func NewVirtualMachineTemplateListResponseIterator Uses

func NewVirtualMachineTemplateListResponseIterator(page VirtualMachineTemplateListResponsePage) VirtualMachineTemplateListResponseIterator

Creates a new instance of the VirtualMachineTemplateListResponseIterator type.

func (*VirtualMachineTemplateListResponseIterator) Next Uses

func (iter *VirtualMachineTemplateListResponseIterator) Next() error

Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*VirtualMachineTemplateListResponseIterator) NextWithContext Uses

func (iter *VirtualMachineTemplateListResponseIterator) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.

func (VirtualMachineTemplateListResponseIterator) NotDone Uses

func (iter VirtualMachineTemplateListResponseIterator) NotDone() bool

NotDone returns true if the enumeration should be started or is not yet complete.

func (VirtualMachineTemplateListResponseIterator) Response Uses

func (iter VirtualMachineTemplateListResponseIterator) Response() VirtualMachineTemplateListResponse

Response returns the raw server response from the last page request.

func (VirtualMachineTemplateListResponseIterator) Value Uses

func (iter VirtualMachineTemplateListResponseIterator) Value() VirtualMachineTemplate

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type VirtualMachineTemplateListResponsePage Uses

type VirtualMachineTemplateListResponsePage struct {
    // contains filtered or unexported fields
}

VirtualMachineTemplateListResponsePage contains a page of VirtualMachineTemplate values.

func NewVirtualMachineTemplateListResponsePage Uses

func NewVirtualMachineTemplateListResponsePage(getNextPage func(context.Context, VirtualMachineTemplateListResponse) (VirtualMachineTemplateListResponse, error)) VirtualMachineTemplateListResponsePage

Creates a new instance of the VirtualMachineTemplateListResponsePage type.

func (*VirtualMachineTemplateListResponsePage) Next Uses

func (page *VirtualMachineTemplateListResponsePage) Next() error

Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*VirtualMachineTemplateListResponsePage) NextWithContext Uses

func (page *VirtualMachineTemplateListResponsePage) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.

func (VirtualMachineTemplateListResponsePage) NotDone Uses

func (page VirtualMachineTemplateListResponsePage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (VirtualMachineTemplateListResponsePage) Response Uses

func (page VirtualMachineTemplateListResponsePage) Response() VirtualMachineTemplateListResponse

Response returns the raw server response from the last page request.

func (VirtualMachineTemplateListResponsePage) Values Uses

func (page VirtualMachineTemplateListResponsePage) Values() []VirtualMachineTemplate

Values returns the slice of values for the current page or nil if there are no values.

type VirtualMachineTemplateProperties Uses

type VirtualMachineTemplateProperties struct {
    // AmountOfRAM - The amount of memory
    AmountOfRAM *int32 `json:"amountOfRam,omitempty"`
    // Controllers - The list of Virtual Disk Controllers
    Controllers *[]VirtualDiskController `json:"controllers,omitempty"`
    // Description - The description of Virtual Machine Template
    Description *string `json:"description,omitempty"`
    // Disks - The list of Virtual Disks
    Disks *[]VirtualDisk `json:"disks,omitempty"`
    // ExposeToGuestVM - Expose Guest OS or not
    ExposeToGuestVM *bool `json:"exposeToGuestVM,omitempty"`
    // GuestOS - READ-ONLY; The Guest OS
    GuestOS *string `json:"guestOS,omitempty"`
    // GuestOSType - READ-ONLY; The Guest OS types
    GuestOSType *string `json:"guestOSType,omitempty"`
    // Nics - The list of Virtual NICs
    Nics *[]VirtualNic `json:"nics,omitempty"`
    // NumberOfCores - The number of CPU cores
    NumberOfCores *int32 `json:"numberOfCores,omitempty"`
    // Path - path to folder
    Path *string `json:"path,omitempty"`
    // PrivateCloudID - The Private Cloud Id
    PrivateCloudID *string `json:"privateCloudId,omitempty"`
    // VSphereNetworks - The list of VSphere networks
    VSphereNetworks *[]string `json:"vSphereNetworks,omitempty"`
    // VSphereTags - The tags from VSphere
    VSphereTags *[]string `json:"vSphereTags,omitempty"`
    // Vmwaretools - READ-ONLY; The VMware tools version
    Vmwaretools *string `json:"vmwaretools,omitempty"`
}

VirtualMachineTemplateProperties properties of virtual machine template

type VirtualMachineTemplatesClient Uses

type VirtualMachineTemplatesClient struct {
    BaseClient
}

VirtualMachineTemplatesClient is the description of the new service

func NewVirtualMachineTemplatesClient Uses

func NewVirtualMachineTemplatesClient(subscriptionID string, referer string) VirtualMachineTemplatesClient

NewVirtualMachineTemplatesClient creates an instance of the VirtualMachineTemplatesClient client.

func NewVirtualMachineTemplatesClientWithBaseURI Uses

func NewVirtualMachineTemplatesClientWithBaseURI(baseURI string, subscriptionID string, referer string) VirtualMachineTemplatesClient

NewVirtualMachineTemplatesClientWithBaseURI creates an instance of the VirtualMachineTemplatesClient client.

func (VirtualMachineTemplatesClient) Get Uses

func (client VirtualMachineTemplatesClient) Get(ctx context.Context, regionID string, pcName string, virtualMachineTemplateName string) (result VirtualMachineTemplate, err error)

Get returns virtual machine templates by its name Parameters: regionID - the region Id (westus, eastus) pcName - the private cloud name virtualMachineTemplateName - virtual machine template id (vsphereId)

func (VirtualMachineTemplatesClient) GetPreparer Uses

func (client VirtualMachineTemplatesClient) GetPreparer(ctx context.Context, regionID string, pcName string, virtualMachineTemplateName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (VirtualMachineTemplatesClient) GetResponder Uses

func (client VirtualMachineTemplatesClient) GetResponder(resp *http.Response) (result VirtualMachineTemplate, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (VirtualMachineTemplatesClient) GetSender Uses

func (client VirtualMachineTemplatesClient) GetSender(req *http.Request) (*http.Response, error)

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

func (VirtualMachineTemplatesClient) List Uses

func (client VirtualMachineTemplatesClient) List(ctx context.Context, pcName string, regionID string, resourcePoolName string) (result VirtualMachineTemplateListResponsePage, err error)

List returns list of virtual machine templates in region for private cloud Parameters: pcName - the private cloud name regionID - the region Id (westus, eastus) resourcePoolName - resource pool used to derive vSphere cluster which contains VM templates

func (VirtualMachineTemplatesClient) ListComplete Uses

func (client VirtualMachineTemplatesClient) ListComplete(ctx context.Context, pcName string, regionID string, resourcePoolName string) (result VirtualMachineTemplateListResponseIterator, err error)

ListComplete enumerates all values, automatically crossing page boundaries as required.

func (VirtualMachineTemplatesClient) ListPreparer Uses

func (client VirtualMachineTemplatesClient) ListPreparer(ctx context.Context, pcName string, regionID string, resourcePoolName string) (*http.Request, error)

ListPreparer prepares the List request.

func (VirtualMachineTemplatesClient) ListResponder Uses

func (client VirtualMachineTemplatesClient) ListResponder(resp *http.Response) (result VirtualMachineTemplateListResponse, err error)

ListResponder handles the response to the List request. The method always closes the http.Response Body.

func (VirtualMachineTemplatesClient) ListSender Uses

func (client VirtualMachineTemplatesClient) ListSender(req *http.Request) (*http.Response, error)

ListSender sends the List request. The method will close the http.Response Body if it receives an error.

type VirtualMachinesClient Uses

type VirtualMachinesClient struct {
    BaseClient
}

VirtualMachinesClient is the description of the new service

func NewVirtualMachinesClient Uses

func NewVirtualMachinesClient(subscriptionID string, referer string) VirtualMachinesClient

NewVirtualMachinesClient creates an instance of the VirtualMachinesClient client.

func NewVirtualMachinesClientWithBaseURI Uses

func NewVirtualMachinesClientWithBaseURI(baseURI string, subscriptionID string, referer string) VirtualMachinesClient

NewVirtualMachinesClientWithBaseURI creates an instance of the VirtualMachinesClient client.

func (VirtualMachinesClient) CreateOrUpdate Uses

func (client VirtualMachinesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, virtualMachineName string, virtualMachineRequest VirtualMachine) (result VirtualMachinesCreateOrUpdateFuture, err error)

CreateOrUpdate create Or Update Virtual Machine Parameters: resourceGroupName - the name of the resource group virtualMachineName - virtual machine name virtualMachineRequest - create or Update Virtual Machine request

func (VirtualMachinesClient) CreateOrUpdatePreparer Uses

func (client VirtualMachinesClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, virtualMachineName string, virtualMachineRequest VirtualMachine) (*http.Request, error)

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (VirtualMachinesClient) CreateOrUpdateResponder Uses

func (client VirtualMachinesClient) CreateOrUpdateResponder(resp *http.Response) (result VirtualMachine, err error)

CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.

func (VirtualMachinesClient) CreateOrUpdateSender Uses

func (client VirtualMachinesClient) CreateOrUpdateSender(req *http.Request) (future VirtualMachinesCreateOrUpdateFuture, err error)

CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the http.Response Body if it receives an error.

func (VirtualMachinesClient) Delete Uses

func (client VirtualMachinesClient) Delete(ctx context.Context, resourceGroupName string, virtualMachineName string) (result VirtualMachinesDeleteFuture, err error)

Delete delete virtual machine Parameters: resourceGroupName - the name of the resource group virtualMachineName - virtual machine name

func (VirtualMachinesClient) DeletePreparer Uses

func (client VirtualMachinesClient) DeletePreparer(ctx context.Context, resourceGroupName string, virtualMachineName string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (VirtualMachinesClient) DeleteResponder Uses

func (client VirtualMachinesClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)

DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.

func (VirtualMachinesClient) DeleteSender Uses

func (client VirtualMachinesClient) DeleteSender(req *http.Request) (future VirtualMachinesDeleteFuture, err error)

DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.

func (VirtualMachinesClient) Get Uses

func (client VirtualMachinesClient) Get(ctx context.Context, resourceGroupName string, virtualMachineName string) (result VirtualMachine, err error)

Get get virtual machine Parameters: resourceGroupName - the name of the resource group virtualMachineName - virtual machine name

func (VirtualMachinesClient) GetPreparer Uses

func (client VirtualMachinesClient) GetPreparer(ctx context.Context, resourceGroupName string, virtualMachineName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (VirtualMachinesClient) GetResponder Uses

func (client VirtualMachinesClient) GetResponder(resp *http.Response) (result VirtualMachine, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (VirtualMachinesClient) GetSender Uses

func (client VirtualMachinesClient) GetSender(req *http.Request) (*http.Response, error)

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

func (VirtualMachinesClient) ListByResourceGroup Uses

func (client VirtualMachinesClient) ListByResourceGroup(ctx context.Context, resourceGroupName string, filter string, top *int32, skipToken string) (result VirtualMachineListResponsePage, err error)

ListByResourceGroup returns list of virtual machine within resource group Parameters: resourceGroupName - the name of the resource group filter - the filter to apply on the list operation top - the maximum number of record sets to return skipToken - to be used by nextLink implementation

func (VirtualMachinesClient) ListByResourceGroupComplete Uses

func (client VirtualMachinesClient) ListByResourceGroupComplete(ctx context.Context, resourceGroupName string, filter string, top *int32, skipToken string) (result VirtualMachineListResponseIterator, err error)

ListByResourceGroupComplete enumerates all values, automatically crossing page boundaries as required.

func (VirtualMachinesClient) ListByResourceGroupPreparer Uses

func (client VirtualMachinesClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string, filter string, top *int32, skipToken string) (*http.Request, error)

ListByResourceGroupPreparer prepares the ListByResourceGroup request.

func (VirtualMachinesClient) ListByResourceGroupResponder Uses

func (client VirtualMachinesClient) ListByResourceGroupResponder(resp *http.Response) (result VirtualMachineListResponse, err error)

ListByResourceGroupResponder handles the response to the ListByResourceGroup request. The method always closes the http.Response Body.

func (VirtualMachinesClient) ListByResourceGroupSender Uses

func (client VirtualMachinesClient) ListByResourceGroupSender(req *http.Request) (*http.Response, error)

ListByResourceGroupSender sends the ListByResourceGroup request. The method will close the http.Response Body if it receives an error.

func (VirtualMachinesClient) ListBySubscription Uses

func (client VirtualMachinesClient) ListBySubscription(ctx context.Context, filter string, top *int32, skipToken string) (result VirtualMachineListResponsePage, err error)

ListBySubscription returns list virtual machine within subscription Parameters: filter - the filter to apply on the list operation top - the maximum number of record sets to return skipToken - to be used by nextLink implementation

func (VirtualMachinesClient) ListBySubscriptionComplete Uses

func (client VirtualMachinesClient) ListBySubscriptionComplete(ctx context.Context, filter string, top *int32, skipToken string) (result VirtualMachineListResponseIterator, err error)

ListBySubscriptionComplete enumerates all values, automatically crossing page boundaries as required.

func (VirtualMachinesClient) ListBySubscriptionPreparer Uses

func (client VirtualMachinesClient) ListBySubscriptionPreparer(ctx context.Context, filter string, top *int32, skipToken string) (*http.Request, error)

ListBySubscriptionPreparer prepares the ListBySubscription request.

func (VirtualMachinesClient) ListBySubscriptionResponder Uses

func (client VirtualMachinesClient) ListBySubscriptionResponder(resp *http.Response) (result VirtualMachineListResponse, err error)

ListBySubscriptionResponder handles the response to the ListBySubscription request. The method always closes the http.Response Body.

func (VirtualMachinesClient) ListBySubscriptionSender Uses

func (client VirtualMachinesClient) ListBySubscriptionSender(req *http.Request) (*http.Response, error)

ListBySubscriptionSender sends the ListBySubscription request. The method will close the http.Response Body if it receives an error.

func (VirtualMachinesClient) Start Uses

func (client VirtualMachinesClient) Start(ctx context.Context, resourceGroupName string, virtualMachineName string) (result VirtualMachinesStartFuture, err error)

Start power on virtual machine Parameters: resourceGroupName - the name of the resource group virtualMachineName - virtual machine name

func (VirtualMachinesClient) StartPreparer Uses

func (client VirtualMachinesClient) StartPreparer(ctx context.Context, resourceGroupName string, virtualMachineName string) (*http.Request, error)

StartPreparer prepares the Start request.

func (VirtualMachinesClient) StartResponder Uses

func (client VirtualMachinesClient) StartResponder(resp *http.Response) (result autorest.Response, err error)

StartResponder handles the response to the Start request. The method always closes the http.Response Body.

func (VirtualMachinesClient) StartSender Uses

func (client VirtualMachinesClient) StartSender(req *http.Request) (future VirtualMachinesStartFuture, err error)

StartSender sends the Start request. The method will close the http.Response Body if it receives an error.

func (VirtualMachinesClient) Stop Uses

func (client VirtualMachinesClient) Stop(ctx context.Context, resourceGroupName string, virtualMachineName string, mParameter *VirtualMachineStopMode, mode StopMode) (result VirtualMachinesStopFuture, err error)

Stop power off virtual machine, options: shutdown, poweroff, and suspend Parameters: resourceGroupName - the name of the resource group virtualMachineName - virtual machine name mParameter - body stop mode parameter (reboot, shutdown, etc...) mode - query stop mode parameter (reboot, shutdown, etc...)

func (VirtualMachinesClient) StopPreparer Uses

func (client VirtualMachinesClient) StopPreparer(ctx context.Context, resourceGroupName string, virtualMachineName string, mParameter *VirtualMachineStopMode, mode StopMode) (*http.Request, error)

StopPreparer prepares the Stop request.

func (VirtualMachinesClient) StopResponder Uses

func (client VirtualMachinesClient) StopResponder(resp *http.Response) (result autorest.Response, err error)

StopResponder handles the response to the Stop request. The method always closes the http.Response Body.

func (VirtualMachinesClient) StopSender Uses

func (client VirtualMachinesClient) StopSender(req *http.Request) (future VirtualMachinesStopFuture, err error)

StopSender sends the Stop request. The method will close the http.Response Body if it receives an error.

func (VirtualMachinesClient) Update Uses

func (client VirtualMachinesClient) Update(ctx context.Context, resourceGroupName string, virtualMachineName string, virtualMachineRequest PatchPayload) (result VirtualMachinesUpdateFuture, err error)

Update patch virtual machine properties Parameters: resourceGroupName - the name of the resource group virtualMachineName - virtual machine name virtualMachineRequest - patch virtual machine request

func (VirtualMachinesClient) UpdatePreparer Uses

func (client VirtualMachinesClient) UpdatePreparer(ctx context.Context, resourceGroupName string, virtualMachineName string, virtualMachineRequest PatchPayload) (*http.Request, error)

UpdatePreparer prepares the Update request.

func (VirtualMachinesClient) UpdateResponder Uses

func (client VirtualMachinesClient) UpdateResponder(resp *http.Response) (result VirtualMachine, err error)

UpdateResponder handles the response to the Update request. The method always closes the http.Response Body.

func (VirtualMachinesClient) UpdateSender Uses

func (client VirtualMachinesClient) UpdateSender(req *http.Request) (future VirtualMachinesUpdateFuture, err error)

UpdateSender sends the Update request. The method will close the http.Response Body if it receives an error.

type VirtualMachinesCreateOrUpdateFuture Uses

type VirtualMachinesCreateOrUpdateFuture struct {
    azure.Future
}

VirtualMachinesCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a long-running operation.

func (*VirtualMachinesCreateOrUpdateFuture) Result Uses

func (future *VirtualMachinesCreateOrUpdateFuture) Result(client VirtualMachinesClient) (VM VirtualMachine, err error)

Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.

type VirtualMachinesDeleteFuture Uses

type VirtualMachinesDeleteFuture struct {
    azure.Future
}

VirtualMachinesDeleteFuture an abstraction for monitoring and retrieving the results of a long-running operation.

func (*VirtualMachinesDeleteFuture) Result Uses

func (future *VirtualMachinesDeleteFuture) Result(client VirtualMachinesClient) (ar autorest.Response, err error)

Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.

type VirtualMachinesStartFuture Uses

type VirtualMachinesStartFuture struct {
    azure.Future
}

VirtualMachinesStartFuture an abstraction for monitoring and retrieving the results of a long-running operation.

func (*VirtualMachinesStartFuture) Result Uses

func (future *VirtualMachinesStartFuture) Result(client VirtualMachinesClient) (ar autorest.Response, err error)

Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.

type VirtualMachinesStopFuture Uses

type VirtualMachinesStopFuture struct {
    azure.Future
}

VirtualMachinesStopFuture an abstraction for monitoring and retrieving the results of a long-running operation.

func (*VirtualMachinesStopFuture) Result Uses

func (future *VirtualMachinesStopFuture) Result(client VirtualMachinesClient) (ar autorest.Response, err error)

Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.

type VirtualMachinesUpdateFuture Uses

type VirtualMachinesUpdateFuture struct {
    azure.Future
}

VirtualMachinesUpdateFuture an abstraction for monitoring and retrieving the results of a long-running operation.

func (*VirtualMachinesUpdateFuture) Result Uses

func (future *VirtualMachinesUpdateFuture) Result(client VirtualMachinesClient) (VM VirtualMachine, err error)

Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.

type VirtualNetwork Uses

type VirtualNetwork struct {
    autorest.Response `json:"-"`
    // Assignable - READ-ONLY; can be used in vm creation/deletion
    Assignable *bool `json:"assignable,omitempty"`
    // ID - virtual network id (privateCloudId:vsphereId)
    ID  *string `json:"id,omitempty"`
    // Location - READ-ONLY; Azure region
    Location *string `json:"location,omitempty"`
    // Name - READ-ONLY; {VirtualNetworkName}
    Name *string `json:"name,omitempty"`
    // VirtualNetworkProperties - Virtual Network properties
    *VirtualNetworkProperties `json:"properties,omitempty"`
    // Type - READ-ONLY; {resourceProviderNamespace}/{resourceType}
    Type *string `json:"type,omitempty"`
}

VirtualNetwork virtual network model

func (VirtualNetwork) MarshalJSON Uses

func (vn VirtualNetwork) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for VirtualNetwork.

func (*VirtualNetwork) UnmarshalJSON Uses

func (vn *VirtualNetwork) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for VirtualNetwork struct.

type VirtualNetworkListResponse Uses

type VirtualNetworkListResponse struct {
    autorest.Response `json:"-"`
    // NextLink - Link for next list of VirtualNetwork
    NextLink *string `json:"nextLink,omitempty"`
    // Value - Results of the VirtualNetwork list
    Value *[]VirtualNetwork `json:"value,omitempty"`
}

VirtualNetworkListResponse list of virtual networks

func (VirtualNetworkListResponse) IsEmpty Uses

func (vnlr VirtualNetworkListResponse) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type VirtualNetworkListResponseIterator Uses

type VirtualNetworkListResponseIterator struct {
    // contains filtered or unexported fields
}

VirtualNetworkListResponseIterator provides access to a complete listing of VirtualNetwork values.

func NewVirtualNetworkListResponseIterator Uses

func NewVirtualNetworkListResponseIterator(page VirtualNetworkListResponsePage) VirtualNetworkListResponseIterator

Creates a new instance of the VirtualNetworkListResponseIterator type.

func (*VirtualNetworkListResponseIterator) Next Uses

func (iter *VirtualNetworkListResponseIterator) Next() error

Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*VirtualNetworkListResponseIterator) NextWithContext Uses

func (iter *VirtualNetworkListResponseIterator) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.

func (VirtualNetworkListResponseIterator) NotDone Uses

func (iter VirtualNetworkListResponseIterator) NotDone() bool

NotDone returns true if the enumeration should be started or is not yet complete.

func (VirtualNetworkListResponseIterator) Response Uses

func (iter VirtualNetworkListResponseIterator) Response() VirtualNetworkListResponse

Response returns the raw server response from the last page request.

func (VirtualNetworkListResponseIterator) Value Uses

func (iter VirtualNetworkListResponseIterator) Value() VirtualNetwork

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type VirtualNetworkListResponsePage Uses

type VirtualNetworkListResponsePage struct {
    // contains filtered or unexported fields
}

VirtualNetworkListResponsePage contains a page of VirtualNetwork values.

func NewVirtualNetworkListResponsePage Uses

func NewVirtualNetworkListResponsePage(getNextPage func(context.Context, VirtualNetworkListResponse) (VirtualNetworkListResponse, error)) VirtualNetworkListResponsePage

Creates a new instance of the VirtualNetworkListResponsePage type.

func (*VirtualNetworkListResponsePage) Next Uses

func (page *VirtualNetworkListResponsePage) Next() error

Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*VirtualNetworkListResponsePage) NextWithContext Uses

func (page *VirtualNetworkListResponsePage) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.

func (VirtualNetworkListResponsePage) NotDone Uses

func (page VirtualNetworkListResponsePage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (VirtualNetworkListResponsePage) Response Uses

func (page VirtualNetworkListResponsePage) Response() VirtualNetworkListResponse

Response returns the raw server response from the last page request.

func (VirtualNetworkListResponsePage) Values Uses

func (page VirtualNetworkListResponsePage) Values() []VirtualNetwork

Values returns the slice of values for the current page or nil if there are no values.

type VirtualNetworkProperties Uses

type VirtualNetworkProperties struct {
    // PrivateCloudID - READ-ONLY; The Private Cloud id
    PrivateCloudID *string `json:"privateCloudId,omitempty"`
}

VirtualNetworkProperties properties of virtual network

type VirtualNetworksClient Uses

type VirtualNetworksClient struct {
    BaseClient
}

VirtualNetworksClient is the description of the new service

func NewVirtualNetworksClient Uses

func NewVirtualNetworksClient(subscriptionID string, referer string) VirtualNetworksClient

NewVirtualNetworksClient creates an instance of the VirtualNetworksClient client.

func NewVirtualNetworksClientWithBaseURI Uses

func NewVirtualNetworksClientWithBaseURI(baseURI string, subscriptionID string, referer string) VirtualNetworksClient

NewVirtualNetworksClientWithBaseURI creates an instance of the VirtualNetworksClient client.

func (VirtualNetworksClient) Get Uses

func (client VirtualNetworksClient) Get(ctx context.Context, regionID string, pcName string, virtualNetworkName string) (result VirtualNetwork, err error)

Get return virtual network by its name Parameters: regionID - the region Id (westus, eastus) pcName - the private cloud name virtualNetworkName - virtual network id (vsphereId)

func (VirtualNetworksClient) GetPreparer Uses

func (client VirtualNetworksClient) GetPreparer(ctx context.Context, regionID string, pcName string, virtualNetworkName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (VirtualNetworksClient) GetResponder Uses

func (client VirtualNetworksClient) GetResponder(resp *http.Response) (result VirtualNetwork, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (VirtualNetworksClient) GetSender Uses

func (client VirtualNetworksClient) GetSender(req *http.Request) (*http.Response, error)

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

func (VirtualNetworksClient) List Uses

func (client VirtualNetworksClient) List(ctx context.Context, regionID string, pcName string, resourcePoolName string) (result VirtualNetworkListResponsePage, err error)

List return list of virtual networks in location for private cloud Parameters: regionID - the region Id (westus, eastus) pcName - the private cloud name resourcePoolName - resource pool used to derive vSphere cluster which contains virtual networks

func (VirtualNetworksClient) ListComplete Uses

func (client VirtualNetworksClient) ListComplete(ctx context.Context, regionID string, pcName string, resourcePoolName string) (result VirtualNetworkListResponseIterator, err error)

ListComplete enumerates all values, automatically crossing page boundaries as required.

func (VirtualNetworksClient) ListPreparer Uses

func (client VirtualNetworksClient) ListPreparer(ctx context.Context, regionID string, pcName string, resourcePoolName string) (*http.Request, error)

ListPreparer prepares the List request.

func (VirtualNetworksClient) ListResponder Uses

func (client VirtualNetworksClient) ListResponder(resp *http.Response) (result VirtualNetworkListResponse, err error)

ListResponder handles the response to the List request. The method always closes the http.Response Body.

func (VirtualNetworksClient) ListSender Uses

func (client VirtualNetworksClient) ListSender(req *http.Request) (*http.Response, error)

ListSender sends the List request. The method will close the http.Response Body if it receives an error.

type VirtualNic Uses

type VirtualNic struct {
    // Customization - guest OS customization for nic
    Customization *GuestOSNICCustomization `json:"customization,omitempty"`
    // IPAddresses - NIC ip address
    IPAddresses *[]string `json:"ipAddresses,omitempty"`
    // MacAddress - NIC MAC address
    MacAddress *string `json:"macAddress,omitempty"`
    // Network - Virtual Network
    Network *VirtualNetwork `json:"network,omitempty"`
    // NicType - NIC type. Possible values include: 'E1000', 'E1000E', 'PCNET32', 'VMXNET', 'VMXNET2', 'VMXNET3'
    NicType NICType `json:"nicType,omitempty"`
    // PowerOnBoot - Is NIC powered on/off on boot
    PowerOnBoot *bool `json:"powerOnBoot,omitempty"`
    // VirtualNicID - NIC id
    VirtualNicID *string `json:"virtualNicId,omitempty"`
    // VirtualNicName - READ-ONLY; NIC name
    VirtualNicName *string `json:"virtualNicName,omitempty"`
}

VirtualNic virtual NIC model

Directories

PathSynopsis
vmwarecloudsimpleapi

Package vmwarecloudsimple imports 11 packages (graph) and is imported by 3 packages. Updated 2019-10-30. Refresh now. Tools for package owners.