vmwarecloudsimple

package
v48.1.0+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 7, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

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

Description of the new service

Index

Constants

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

Variables

This section is empty.

Functions

func UserAgent

func UserAgent() string

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

func Version

func Version() string

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

Types

type AggregationType

type AggregationType string

AggregationType enumerates the values for aggregation type.

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

func PossibleAggregationTypeValues

func PossibleAggregationTypeValues() []AggregationType

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

type Allocation

type Allocation string

Allocation enumerates the values for allocation.

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

func PossibleAllocationValues

func PossibleAllocationValues() []Allocation

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

type AvailableOperation

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

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

MarshalJSON is the custom marshaler for AvailableOperation.

func (*AvailableOperation) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaler for AvailableOperation struct.

type AvailableOperationDisplay

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

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

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

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

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

func (aolr AvailableOperationsListResponse) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type AvailableOperationsListResponseIterator

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

AvailableOperationsListResponseIterator provides access to a complete listing of AvailableOperation values.

func NewAvailableOperationsListResponseIterator

func NewAvailableOperationsListResponseIterator(page AvailableOperationsListResponsePage) AvailableOperationsListResponseIterator

Creates a new instance of the AvailableOperationsListResponseIterator type.

func (*AvailableOperationsListResponseIterator) Next

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

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

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

func (AvailableOperationsListResponseIterator) Response

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

func (AvailableOperationsListResponseIterator) Value

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

type AvailableOperationsListResponsePage

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

AvailableOperationsListResponsePage contains a page of AvailableOperation values.

func NewAvailableOperationsListResponsePage

Creates a new instance of the AvailableOperationsListResponsePage type.

func (*AvailableOperationsListResponsePage) Next

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

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

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

func (AvailableOperationsListResponsePage) Response

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

func (AvailableOperationsListResponsePage) Values

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

type BaseClient

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

BaseClient is the base client for Vmwarecloudsimple.

func New

func New(subscriptionID string, referer string) BaseClient

New creates an instance of the BaseClient client.

func NewWithBaseURI

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

NewWithBaseURI creates an instance of the BaseClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

type CSRPError

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

CSRPError general error model

type CSRPErrorBody

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

func (CSRPErrorBody) MarshalJSON

func (ceb CSRPErrorBody) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for CSRPErrorBody.

type CustomizationHostName

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

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

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

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

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

CustomizationIdentityUserData windows Identity. User data customization

type CustomizationNicSetting

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

type CustomizationPoliciesClient struct {
	BaseClient
}

CustomizationPoliciesClient is the description of the new service

func NewCustomizationPoliciesClient

func NewCustomizationPoliciesClient(subscriptionID string, referer string) CustomizationPoliciesClient

NewCustomizationPoliciesClient creates an instance of the CustomizationPoliciesClient client.

func NewCustomizationPoliciesClientWithBaseURI

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

NewCustomizationPoliciesClientWithBaseURI creates an instance of the CustomizationPoliciesClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (CustomizationPoliciesClient) Get

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

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

GetPreparer prepares the Get request.

func (CustomizationPoliciesClient) GetResponder

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

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

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

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

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

ListPreparer prepares the List request.

func (CustomizationPoliciesClient) ListResponder

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

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

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

func (cplr CustomizationPoliciesListResponse) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type CustomizationPoliciesListResponseIterator

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

CustomizationPoliciesListResponseIterator provides access to a complete listing of CustomizationPolicy values.

func NewCustomizationPoliciesListResponseIterator

func NewCustomizationPoliciesListResponseIterator(page CustomizationPoliciesListResponsePage) CustomizationPoliciesListResponseIterator

Creates a new instance of the CustomizationPoliciesListResponseIterator type.

func (*CustomizationPoliciesListResponseIterator) Next

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

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

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

func (CustomizationPoliciesListResponseIterator) Response

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

func (CustomizationPoliciesListResponseIterator) Value

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

type CustomizationPoliciesListResponsePage

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

CustomizationPoliciesListResponsePage contains a page of CustomizationPolicy values.

func NewCustomizationPoliciesListResponsePage

Creates a new instance of the CustomizationPoliciesListResponsePage type.

func (*CustomizationPoliciesListResponsePage) Next

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

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

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

func (CustomizationPoliciesListResponsePage) Response

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

func (CustomizationPoliciesListResponsePage) Values

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

type CustomizationPolicy

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

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

MarshalJSON is the custom marshaler for CustomizationPolicy.

func (*CustomizationPolicy) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaler for CustomizationPolicy struct.

type CustomizationPolicyProperties

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

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

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

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

MarshalJSON is the custom marshaler for DedicatedCloudNode.

func (*DedicatedCloudNode) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaler for DedicatedCloudNode struct.

type DedicatedCloudNodeListResponse

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

func (dcnlr DedicatedCloudNodeListResponse) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type DedicatedCloudNodeListResponseIterator

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

DedicatedCloudNodeListResponseIterator provides access to a complete listing of DedicatedCloudNode values.

func NewDedicatedCloudNodeListResponseIterator

func NewDedicatedCloudNodeListResponseIterator(page DedicatedCloudNodeListResponsePage) DedicatedCloudNodeListResponseIterator

Creates a new instance of the DedicatedCloudNodeListResponseIterator type.

func (*DedicatedCloudNodeListResponseIterator) Next

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

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

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

func (DedicatedCloudNodeListResponseIterator) Response

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

func (DedicatedCloudNodeListResponseIterator) Value

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

type DedicatedCloudNodeListResponsePage

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

DedicatedCloudNodeListResponsePage contains a page of DedicatedCloudNode values.

func NewDedicatedCloudNodeListResponsePage

Creates a new instance of the DedicatedCloudNodeListResponsePage type.

func (*DedicatedCloudNodeListResponsePage) Next

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

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

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

func (DedicatedCloudNodeListResponsePage) Response

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

func (DedicatedCloudNodeListResponsePage) Values

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

type DedicatedCloudNodeProperties

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

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

MarshalJSON is the custom marshaler for DedicatedCloudNodeProperties.

func (*DedicatedCloudNodeProperties) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaler for DedicatedCloudNodeProperties struct.

type DedicatedCloudNodesClient

type DedicatedCloudNodesClient struct {
	BaseClient
}

DedicatedCloudNodesClient is the description of the new service

func NewDedicatedCloudNodesClient

func NewDedicatedCloudNodesClient(subscriptionID string, referer string) DedicatedCloudNodesClient

NewDedicatedCloudNodesClient creates an instance of the DedicatedCloudNodesClient client.

func NewDedicatedCloudNodesClientWithBaseURI

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

NewDedicatedCloudNodesClientWithBaseURI creates an instance of the DedicatedCloudNodesClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (DedicatedCloudNodesClient) CreateOrUpdate

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

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

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (DedicatedCloudNodesClient) CreateOrUpdateResponder

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

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

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

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

DeletePreparer prepares the Delete request.

func (DedicatedCloudNodesClient) DeleteResponder

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

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

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

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

GetPreparer prepares the Get request.

func (DedicatedCloudNodesClient) GetResponder

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

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

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

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

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

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

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

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

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

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

ListBySubscriptionPreparer prepares the ListBySubscription request.

func (DedicatedCloudNodesClient) ListBySubscriptionResponder

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

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

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

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

UpdatePreparer prepares the Update request.

func (DedicatedCloudNodesClient) UpdateResponder

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

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

type DedicatedCloudNodesCreateOrUpdateFuture struct {
	azure.Future
}

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

func (*DedicatedCloudNodesCreateOrUpdateFuture) Result

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

type DedicatedCloudService

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

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

MarshalJSON is the custom marshaler for DedicatedCloudService.

func (*DedicatedCloudService) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaler for DedicatedCloudService struct.

type DedicatedCloudServiceListResponse

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

func (dcslr DedicatedCloudServiceListResponse) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type DedicatedCloudServiceListResponseIterator

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

DedicatedCloudServiceListResponseIterator provides access to a complete listing of DedicatedCloudService values.

func NewDedicatedCloudServiceListResponseIterator

func NewDedicatedCloudServiceListResponseIterator(page DedicatedCloudServiceListResponsePage) DedicatedCloudServiceListResponseIterator

Creates a new instance of the DedicatedCloudServiceListResponseIterator type.

func (*DedicatedCloudServiceListResponseIterator) Next

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

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

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

func (DedicatedCloudServiceListResponseIterator) Response

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

func (DedicatedCloudServiceListResponseIterator) Value

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

type DedicatedCloudServiceListResponsePage

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

DedicatedCloudServiceListResponsePage contains a page of DedicatedCloudService values.

func NewDedicatedCloudServiceListResponsePage

Creates a new instance of the DedicatedCloudServiceListResponsePage type.

func (*DedicatedCloudServiceListResponsePage) Next

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

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

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

func (DedicatedCloudServiceListResponsePage) Response

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

func (DedicatedCloudServiceListResponsePage) Values

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

type DedicatedCloudServiceProperties

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

func (DedicatedCloudServiceProperties) MarshalJSON

func (dcsp DedicatedCloudServiceProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for DedicatedCloudServiceProperties.

type DedicatedCloudServicesClient

type DedicatedCloudServicesClient struct {
	BaseClient
}

DedicatedCloudServicesClient is the description of the new service

func NewDedicatedCloudServicesClient

func NewDedicatedCloudServicesClient(subscriptionID string, referer string) DedicatedCloudServicesClient

NewDedicatedCloudServicesClient creates an instance of the DedicatedCloudServicesClient client.

func NewDedicatedCloudServicesClientWithBaseURI

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

NewDedicatedCloudServicesClientWithBaseURI creates an instance of the DedicatedCloudServicesClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (DedicatedCloudServicesClient) CreateOrUpdate

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

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

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (DedicatedCloudServicesClient) CreateOrUpdateResponder

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

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

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

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

DeletePreparer prepares the Delete request.

func (DedicatedCloudServicesClient) DeleteResponder

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

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

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

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

GetPreparer prepares the Get request.

func (DedicatedCloudServicesClient) GetResponder

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

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

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

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

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

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

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

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

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

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

ListBySubscriptionPreparer prepares the ListBySubscription request.

func (DedicatedCloudServicesClient) ListBySubscriptionResponder

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

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

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

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

UpdatePreparer prepares the Update request.

func (DedicatedCloudServicesClient) UpdateResponder

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

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

type DedicatedCloudServicesDeleteFuture struct {
	azure.Future
}

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

func (*DedicatedCloudServicesDeleteFuture) Result

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

type DiskIndependenceMode

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

func PossibleDiskIndependenceModeValues() []DiskIndependenceMode

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

type GuestOSCustomization

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

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

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

func PossibleGuestOSTypeValues() []GuestOSType

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

type NICType

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

func PossibleNICTypeValues() []NICType

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

type NodeStatus

type NodeStatus string

NodeStatus enumerates the values for node status.

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

func PossibleNodeStatusValues

func PossibleNodeStatusValues() []NodeStatus

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

type OnboardingStatus

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

func PossibleOnboardingStatusValues() []OnboardingStatus

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

type OperationError

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

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

func PossibleOperationOriginValues() []OperationOrigin

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

type OperationResource

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

func (OperationResource) MarshalJSON

func (or OperationResource) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for OperationResource.

type OperationsClient

type OperationsClient struct {
	BaseClient
}

OperationsClient is the description of the new service

func NewOperationsClient

func NewOperationsClient(subscriptionID string, referer string) OperationsClient

NewOperationsClient creates an instance of the OperationsClient client.

func NewOperationsClientWithBaseURI

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

NewOperationsClientWithBaseURI creates an instance of the OperationsClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (OperationsClient) Get

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

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

GetPreparer prepares the Get request.

func (OperationsClient) GetResponder

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

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

List return list of operations

func (OperationsClient) ListComplete

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

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

func (OperationsClient) ListPreparer

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

ListPreparer prepares the List request.

func (OperationsClient) ListResponder

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

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

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

PatchPayload general patch payload modal

func (PatchPayload) MarshalJSON

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

MarshalJSON is the custom marshaler for PatchPayload.

type PrivateCloud

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

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

MarshalJSON is the custom marshaler for PrivateCloud.

func (*PrivateCloud) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaler for PrivateCloud struct.

type PrivateCloudList

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

func (pcl PrivateCloudList) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type PrivateCloudListIterator

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

PrivateCloudListIterator provides access to a complete listing of PrivateCloud values.

func NewPrivateCloudListIterator

func NewPrivateCloudListIterator(page PrivateCloudListPage) PrivateCloudListIterator

Creates a new instance of the PrivateCloudListIterator type.

func (*PrivateCloudListIterator) Next

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

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

func (iter PrivateCloudListIterator) NotDone() bool

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

func (PrivateCloudListIterator) Response

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

func (PrivateCloudListIterator) Value

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

type PrivateCloudListPage

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

PrivateCloudListPage contains a page of PrivateCloud values.

func NewPrivateCloudListPage

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

Creates a new instance of the PrivateCloudListPage type.

func (*PrivateCloudListPage) Next

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

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

func (page PrivateCloudListPage) NotDone() bool

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

func (PrivateCloudListPage) Response

func (page PrivateCloudListPage) Response() PrivateCloudList

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

func (PrivateCloudListPage) Values

func (page PrivateCloudListPage) Values() []PrivateCloud

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

type PrivateCloudProperties

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

type PrivateCloudResourceType string

PrivateCloudResourceType enumerates the values for private cloud resource type.

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

func PossiblePrivateCloudResourceTypeValues

func PossiblePrivateCloudResourceTypeValues() []PrivateCloudResourceType

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

type PrivateCloudsClient

type PrivateCloudsClient struct {
	BaseClient
}

PrivateCloudsClient is the description of the new service

func NewPrivateCloudsClient

func NewPrivateCloudsClient(subscriptionID string, referer string) PrivateCloudsClient

NewPrivateCloudsClient creates an instance of the PrivateCloudsClient client.

func NewPrivateCloudsClientWithBaseURI

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

NewPrivateCloudsClientWithBaseURI creates an instance of the PrivateCloudsClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (PrivateCloudsClient) Get

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

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

GetPreparer prepares the Get request.

func (PrivateCloudsClient) GetResponder

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

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

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

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

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

ListPreparer prepares the List request.

func (PrivateCloudsClient) ListResponder

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

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

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

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

MarshalJSON is the custom marshaler for ResourcePool.

func (*ResourcePool) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaler for ResourcePool struct.

type ResourcePoolProperties

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

ResourcePoolProperties properties of resource pool

type ResourcePoolsClient

type ResourcePoolsClient struct {
	BaseClient
}

ResourcePoolsClient is the description of the new service

func NewResourcePoolsClient

func NewResourcePoolsClient(subscriptionID string, referer string) ResourcePoolsClient

NewResourcePoolsClient creates an instance of the ResourcePoolsClient client.

func NewResourcePoolsClientWithBaseURI

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

NewResourcePoolsClientWithBaseURI creates an instance of the ResourcePoolsClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (ResourcePoolsClient) Get

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

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

GetPreparer prepares the Get request.

func (ResourcePoolsClient) GetResponder

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

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

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

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

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

ListPreparer prepares the List request.

func (ResourcePoolsClient) ListResponder

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

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

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

func (rplr ResourcePoolsListResponse) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type ResourcePoolsListResponseIterator

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

ResourcePoolsListResponseIterator provides access to a complete listing of ResourcePool values.

func NewResourcePoolsListResponseIterator

func NewResourcePoolsListResponseIterator(page ResourcePoolsListResponsePage) ResourcePoolsListResponseIterator

Creates a new instance of the ResourcePoolsListResponseIterator type.

func (*ResourcePoolsListResponseIterator) Next

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

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

func (iter ResourcePoolsListResponseIterator) NotDone() bool

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

func (ResourcePoolsListResponseIterator) Response

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

func (ResourcePoolsListResponseIterator) Value

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

type ResourcePoolsListResponsePage

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

ResourcePoolsListResponsePage contains a page of ResourcePool values.

func NewResourcePoolsListResponsePage

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

Creates a new instance of the ResourcePoolsListResponsePage type.

func (*ResourcePoolsListResponsePage) Next

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

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

func (page ResourcePoolsListResponsePage) NotDone() bool

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

func (ResourcePoolsListResponsePage) Response

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

func (ResourcePoolsListResponsePage) Values

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

type Sku

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

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

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

func (salr SkuAvailabilityListResponse) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type SkuAvailabilityListResponseIterator

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

SkuAvailabilityListResponseIterator provides access to a complete listing of SkuAvailability values.

func NewSkuAvailabilityListResponseIterator

func NewSkuAvailabilityListResponseIterator(page SkuAvailabilityListResponsePage) SkuAvailabilityListResponseIterator

Creates a new instance of the SkuAvailabilityListResponseIterator type.

func (*SkuAvailabilityListResponseIterator) Next

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

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

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

func (SkuAvailabilityListResponseIterator) Response

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

func (SkuAvailabilityListResponseIterator) Value

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

type SkuAvailabilityListResponsePage

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

SkuAvailabilityListResponsePage contains a page of SkuAvailability values.

func NewSkuAvailabilityListResponsePage

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

Creates a new instance of the SkuAvailabilityListResponsePage type.

func (*SkuAvailabilityListResponsePage) Next

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

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

func (page SkuAvailabilityListResponsePage) NotDone() bool

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

func (SkuAvailabilityListResponsePage) Response

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

func (SkuAvailabilityListResponsePage) Values

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

type SkuDescription

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

type SkusAvailabilityClient struct {
	BaseClient
}

SkusAvailabilityClient is the description of the new service

func NewSkusAvailabilityClient

func NewSkusAvailabilityClient(subscriptionID string, referer string) SkusAvailabilityClient

NewSkusAvailabilityClient creates an instance of the SkusAvailabilityClient client.

func NewSkusAvailabilityClientWithBaseURI

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

NewSkusAvailabilityClientWithBaseURI creates an instance of the SkusAvailabilityClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (SkusAvailabilityClient) List

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

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

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

ListPreparer prepares the List request.

func (SkusAvailabilityClient) ListResponder

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

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

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

func PossibleStopModeValues() []StopMode

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

type Type

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

func PossibleTypeValues() []Type

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

type Type1

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

func PossibleType1Values() []Type1

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

type Type2

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

func PossibleType2Values() []Type2

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

type Type3

type Type3 string

Type3 enumerates the values for type 3.

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

func PossibleType3Values

func PossibleType3Values() []Type3

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

type Usage

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

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

func PossibleUsageCountValues() []UsageCount

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

type UsageListResponse

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

func (ulr UsageListResponse) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

func (UsageListResponse) MarshalJSON

func (ulr UsageListResponse) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for UsageListResponse.

type UsageListResponseIterator

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

UsageListResponseIterator provides access to a complete listing of Usage values.

func NewUsageListResponseIterator

func NewUsageListResponseIterator(page UsageListResponsePage) UsageListResponseIterator

Creates a new instance of the UsageListResponseIterator type.

func (*UsageListResponseIterator) Next

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

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

func (iter UsageListResponseIterator) NotDone() bool

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

func (UsageListResponseIterator) Response

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

func (UsageListResponseIterator) Value

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

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

UsageListResponsePage contains a page of Usage values.

func NewUsageListResponsePage

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

Creates a new instance of the UsageListResponsePage type.

func (*UsageListResponsePage) Next

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

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

func (page UsageListResponsePage) NotDone() bool

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

func (UsageListResponsePage) Response

func (page UsageListResponsePage) Response() UsageListResponse

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

func (UsageListResponsePage) Values

func (page UsageListResponsePage) Values() []Usage

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

type UsageName

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

type UsagesClient struct {
	BaseClient
}

UsagesClient is the description of the new service

func NewUsagesClient

func NewUsagesClient(subscriptionID string, referer string) UsagesClient

NewUsagesClient creates an instance of the UsagesClient client.

func NewUsagesClientWithBaseURI

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

NewUsagesClientWithBaseURI creates an instance of the UsagesClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (UsagesClient) List

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

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

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

ListPreparer prepares the List request.

func (UsagesClient) ListResponder

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

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

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

func (VirtualDisk) MarshalJSON

func (vd VirtualDisk) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for VirtualDisk.

type VirtualDiskController

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

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

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

MarshalJSON is the custom marshaler for VirtualMachine.

func (*VirtualMachine) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaler for VirtualMachine struct.

type VirtualMachineListResponse

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

func (vmlr VirtualMachineListResponse) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type VirtualMachineListResponseIterator

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

VirtualMachineListResponseIterator provides access to a complete listing of VirtualMachine values.

func NewVirtualMachineListResponseIterator

func NewVirtualMachineListResponseIterator(page VirtualMachineListResponsePage) VirtualMachineListResponseIterator

Creates a new instance of the VirtualMachineListResponseIterator type.

func (*VirtualMachineListResponseIterator) Next

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

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

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

func (VirtualMachineListResponseIterator) Response

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

func (VirtualMachineListResponseIterator) Value

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

type VirtualMachineListResponsePage

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

VirtualMachineListResponsePage contains a page of VirtualMachine values.

func NewVirtualMachineListResponsePage

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

Creates a new instance of the VirtualMachineListResponsePage type.

func (*VirtualMachineListResponsePage) Next

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

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

func (page VirtualMachineListResponsePage) NotDone() bool

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

func (VirtualMachineListResponsePage) Response

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

func (VirtualMachineListResponsePage) Values

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

type VirtualMachineProperties

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

func (VirtualMachineProperties) MarshalJSON

func (vmp VirtualMachineProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for VirtualMachineProperties.

type VirtualMachineStatus

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

func PossibleVirtualMachineStatusValues() []VirtualMachineStatus

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

type VirtualMachineStopMode

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

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

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

MarshalJSON is the custom marshaler for VirtualMachineTemplate.

func (*VirtualMachineTemplate) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaler for VirtualMachineTemplate struct.

type VirtualMachineTemplateListResponse

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

func (vmtlr VirtualMachineTemplateListResponse) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type VirtualMachineTemplateListResponseIterator

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

VirtualMachineTemplateListResponseIterator provides access to a complete listing of VirtualMachineTemplate values.

func NewVirtualMachineTemplateListResponseIterator

func NewVirtualMachineTemplateListResponseIterator(page VirtualMachineTemplateListResponsePage) VirtualMachineTemplateListResponseIterator

Creates a new instance of the VirtualMachineTemplateListResponseIterator type.

func (*VirtualMachineTemplateListResponseIterator) Next

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

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

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

func (VirtualMachineTemplateListResponseIterator) Response

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

func (VirtualMachineTemplateListResponseIterator) Value

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

type VirtualMachineTemplateListResponsePage

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

VirtualMachineTemplateListResponsePage contains a page of VirtualMachineTemplate values.

func NewVirtualMachineTemplateListResponsePage

Creates a new instance of the VirtualMachineTemplateListResponsePage type.

func (*VirtualMachineTemplateListResponsePage) Next

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

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

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

func (VirtualMachineTemplateListResponsePage) Response

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

func (VirtualMachineTemplateListResponsePage) Values

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

type VirtualMachineTemplateProperties

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

func (VirtualMachineTemplateProperties) MarshalJSON

func (vmtp VirtualMachineTemplateProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for VirtualMachineTemplateProperties.

type VirtualMachineTemplatesClient

type VirtualMachineTemplatesClient struct {
	BaseClient
}

VirtualMachineTemplatesClient is the description of the new service

func NewVirtualMachineTemplatesClient

func NewVirtualMachineTemplatesClient(subscriptionID string, referer string) VirtualMachineTemplatesClient

NewVirtualMachineTemplatesClient creates an instance of the VirtualMachineTemplatesClient client.

func NewVirtualMachineTemplatesClientWithBaseURI

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

NewVirtualMachineTemplatesClientWithBaseURI creates an instance of the VirtualMachineTemplatesClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (VirtualMachineTemplatesClient) Get

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

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

GetPreparer prepares the Get request.

func (VirtualMachineTemplatesClient) GetResponder

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

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

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

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

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

ListPreparer prepares the List request.

func (VirtualMachineTemplatesClient) ListResponder

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

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

type VirtualMachinesClient struct {
	BaseClient
}

VirtualMachinesClient is the description of the new service

func NewVirtualMachinesClient

func NewVirtualMachinesClient(subscriptionID string, referer string) VirtualMachinesClient

NewVirtualMachinesClient creates an instance of the VirtualMachinesClient client.

func NewVirtualMachinesClientWithBaseURI

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

NewVirtualMachinesClientWithBaseURI creates an instance of the VirtualMachinesClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (VirtualMachinesClient) CreateOrUpdate

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

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

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (VirtualMachinesClient) CreateOrUpdateResponder

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

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

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

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

DeletePreparer prepares the Delete request.

func (VirtualMachinesClient) DeleteResponder

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

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

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

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

GetPreparer prepares the Get request.

func (VirtualMachinesClient) GetResponder

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

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

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

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

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

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

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

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

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

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

ListBySubscriptionPreparer prepares the ListBySubscription request.

func (VirtualMachinesClient) ListBySubscriptionResponder

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

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

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

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

StartPreparer prepares the Start request.

func (VirtualMachinesClient) StartResponder

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

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

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

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

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

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

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

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

UpdatePreparer prepares the Update request.

func (VirtualMachinesClient) UpdateResponder

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

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

type VirtualMachinesCreateOrUpdateFuture struct {
	azure.Future
}

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

func (*VirtualMachinesCreateOrUpdateFuture) Result

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

type VirtualMachinesDeleteFuture

type VirtualMachinesDeleteFuture struct {
	azure.Future
}

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

func (*VirtualMachinesDeleteFuture) Result

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

type VirtualMachinesStartFuture struct {
	azure.Future
}

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

func (*VirtualMachinesStartFuture) Result

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

type VirtualMachinesStopFuture struct {
	azure.Future
}

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

func (*VirtualMachinesStopFuture) Result

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

type VirtualMachinesUpdateFuture struct {
	azure.Future
}

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

func (*VirtualMachinesUpdateFuture) Result

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

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

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

MarshalJSON is the custom marshaler for VirtualNetwork.

func (*VirtualNetwork) UnmarshalJSON

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

UnmarshalJSON is the custom unmarshaler for VirtualNetwork struct.

type VirtualNetworkListResponse

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

func (vnlr VirtualNetworkListResponse) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type VirtualNetworkListResponseIterator

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

VirtualNetworkListResponseIterator provides access to a complete listing of VirtualNetwork values.

func NewVirtualNetworkListResponseIterator

func NewVirtualNetworkListResponseIterator(page VirtualNetworkListResponsePage) VirtualNetworkListResponseIterator

Creates a new instance of the VirtualNetworkListResponseIterator type.

func (*VirtualNetworkListResponseIterator) Next

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

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

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

func (VirtualNetworkListResponseIterator) Response

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

func (VirtualNetworkListResponseIterator) Value

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

type VirtualNetworkListResponsePage

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

VirtualNetworkListResponsePage contains a page of VirtualNetwork values.

func NewVirtualNetworkListResponsePage

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

Creates a new instance of the VirtualNetworkListResponsePage type.

func (*VirtualNetworkListResponsePage) Next

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

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

func (page VirtualNetworkListResponsePage) NotDone() bool

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

func (VirtualNetworkListResponsePage) Response

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

func (VirtualNetworkListResponsePage) Values

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

type VirtualNetworkProperties

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

VirtualNetworkProperties properties of virtual network

type VirtualNetworksClient

type VirtualNetworksClient struct {
	BaseClient
}

VirtualNetworksClient is the description of the new service

func NewVirtualNetworksClient

func NewVirtualNetworksClient(subscriptionID string, referer string) VirtualNetworksClient

NewVirtualNetworksClient creates an instance of the VirtualNetworksClient client.

func NewVirtualNetworksClientWithBaseURI

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

NewVirtualNetworksClientWithBaseURI creates an instance of the VirtualNetworksClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).

func (VirtualNetworksClient) Get

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

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

GetPreparer prepares the Get request.

func (VirtualNetworksClient) GetResponder

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

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

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

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

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

ListPreparer prepares the List request.

func (VirtualNetworksClient) ListResponder

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

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

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

func (VirtualNic) MarshalJSON

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

MarshalJSON is the custom marshaler for VirtualNic.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL