vmwarecloudsimple

package
v34.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2019 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 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 AvailableOperationsClient

type AvailableOperationsClient struct {
	BaseClient
}

AvailableOperationsClient is the description of the new service

func NewAvailableOperationsClient

func NewAvailableOperationsClient(referer string, regionID string, subscriptionID string) AvailableOperationsClient

NewAvailableOperationsClient creates an instance of the AvailableOperationsClient client.

func NewAvailableOperationsClientWithBaseURI

func NewAvailableOperationsClientWithBaseURI(baseURI string, referer string, regionID string, subscriptionID string) AvailableOperationsClient

NewAvailableOperationsClientWithBaseURI creates an instance of the AvailableOperationsClient client.

func (AvailableOperationsClient) List

List return list of operations

func (AvailableOperationsClient) ListComplete

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

func (AvailableOperationsClient) ListPreparer

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

ListPreparer prepares the List request.

func (AvailableOperationsClient) ListResponder

func (client AvailableOperationsClient) 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 (AvailableOperationsClient) ListSender

func (client AvailableOperationsClient) 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 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
	Referer        string
	RegionID       string
	SubscriptionID string
}

BaseClient is the base client for Vmwarecloudsimple.

func New

func New(referer string, regionID string, subscriptionID string) BaseClient

New creates an instance of the BaseClient client.

func NewWithBaseURI

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

NewWithBaseURI creates an instance of the BaseClient client.

func (BaseClient) GetOperationResultByRegion

func (client BaseClient) GetOperationResultByRegion(ctx context.Context, operationID string) (result OperationResource, err error)

GetOperationResultByRegion return an async operation Parameters: operationID - operation id

func (BaseClient) GetOperationResultByRegionPreparer

func (client BaseClient) GetOperationResultByRegionPreparer(ctx context.Context, operationID string) (*http.Request, error)

GetOperationResultByRegionPreparer prepares the GetOperationResultByRegion request.

func (BaseClient) GetOperationResultByRegionResponder

func (client BaseClient) GetOperationResultByRegionResponder(resp *http.Response) (result OperationResource, err error)

GetOperationResultByRegionResponder handles the response to the GetOperationResultByRegion request. The method always closes the http.Response Body.

func (BaseClient) GetOperationResultByRegionSender

func (client BaseClient) GetOperationResultByRegionSender(req *http.Request) (*http.Response, error)

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

func (BaseClient) GetPrivateCloud

func (client BaseClient) GetPrivateCloud(ctx context.Context, pcName string) (result PrivateCloud, err error)

GetPrivateCloud returns private cloud by its name Parameters: pcName - the private cloud name

func (BaseClient) GetPrivateCloudPreparer

func (client BaseClient) GetPrivateCloudPreparer(ctx context.Context, pcName string) (*http.Request, error)

GetPrivateCloudPreparer prepares the GetPrivateCloud request.

func (BaseClient) GetPrivateCloudResponder

func (client BaseClient) GetPrivateCloudResponder(resp *http.Response) (result PrivateCloud, err error)

GetPrivateCloudResponder handles the response to the GetPrivateCloud request. The method always closes the http.Response Body.

func (BaseClient) GetPrivateCloudSender

func (client BaseClient) GetPrivateCloudSender(req *http.Request) (*http.Response, error)

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

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

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 DedicatedCloudNodeClient

type DedicatedCloudNodeClient struct {
	BaseClient
}

DedicatedCloudNodeClient is the description of the new service

func NewDedicatedCloudNodeClient

func NewDedicatedCloudNodeClient(referer string, regionID string, subscriptionID string) DedicatedCloudNodeClient

NewDedicatedCloudNodeClient creates an instance of the DedicatedCloudNodeClient client.

func NewDedicatedCloudNodeClientWithBaseURI

func NewDedicatedCloudNodeClientWithBaseURI(baseURI string, referer string, regionID string, subscriptionID string) DedicatedCloudNodeClient

NewDedicatedCloudNodeClientWithBaseURI creates an instance of the DedicatedCloudNodeClient client.

func (DedicatedCloudNodeClient) CreateOrUpdate

func (client DedicatedCloudNodeClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, dedicatedCloudNodeName string, dedicatedCloudNodeRequest DedicatedCloudNode) (result DedicatedCloudNodeCreateOrUpdateFuture, 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 (DedicatedCloudNodeClient) CreateOrUpdatePreparer

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

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (DedicatedCloudNodeClient) CreateOrUpdateResponder

func (client DedicatedCloudNodeClient) 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 (DedicatedCloudNodeClient) CreateOrUpdateSender

func (client DedicatedCloudNodeClient) CreateOrUpdateSender(req *http.Request) (future DedicatedCloudNodeCreateOrUpdateFuture, err error)

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

func (DedicatedCloudNodeClient) Delete

func (client DedicatedCloudNodeClient) 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 (DedicatedCloudNodeClient) DeletePreparer

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

DeletePreparer prepares the Delete request.

func (DedicatedCloudNodeClient) DeleteResponder

func (client DedicatedCloudNodeClient) 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 (DedicatedCloudNodeClient) DeleteSender

func (client DedicatedCloudNodeClient) 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 (DedicatedCloudNodeClient) Get

func (client DedicatedCloudNodeClient) 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 (DedicatedCloudNodeClient) GetPreparer

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

GetPreparer prepares the Get request.

func (DedicatedCloudNodeClient) GetResponder

func (client DedicatedCloudNodeClient) 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 (DedicatedCloudNodeClient) GetSender

func (client DedicatedCloudNodeClient) 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 (DedicatedCloudNodeClient) ListByResourceGroup

func (client DedicatedCloudNodeClient) 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 (DedicatedCloudNodeClient) ListByResourceGroupComplete

func (client DedicatedCloudNodeClient) 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 (DedicatedCloudNodeClient) ListByResourceGroupPreparer

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

ListByResourceGroupPreparer prepares the ListByResourceGroup request.

func (DedicatedCloudNodeClient) ListByResourceGroupResponder

func (client DedicatedCloudNodeClient) 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 (DedicatedCloudNodeClient) ListByResourceGroupSender

func (client DedicatedCloudNodeClient) 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 (DedicatedCloudNodeClient) ListBySubscription

func (client DedicatedCloudNodeClient) 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 (DedicatedCloudNodeClient) ListBySubscriptionComplete

func (client DedicatedCloudNodeClient) 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 (DedicatedCloudNodeClient) ListBySubscriptionPreparer

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

ListBySubscriptionPreparer prepares the ListBySubscription request.

func (DedicatedCloudNodeClient) ListBySubscriptionResponder

func (client DedicatedCloudNodeClient) 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 (DedicatedCloudNodeClient) ListBySubscriptionSender

func (client DedicatedCloudNodeClient) 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 (DedicatedCloudNodeClient) Update

func (client DedicatedCloudNodeClient) 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 (DedicatedCloudNodeClient) UpdatePreparer

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

UpdatePreparer prepares the Update request.

func (DedicatedCloudNodeClient) UpdateResponder

func (client DedicatedCloudNodeClient) 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 (DedicatedCloudNodeClient) UpdateSender

func (client DedicatedCloudNodeClient) 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 DedicatedCloudNodeCreateOrUpdateFuture

type DedicatedCloudNodeCreateOrUpdateFuture struct {
	azure.Future
}

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

func (*DedicatedCloudNodeCreateOrUpdateFuture) Result

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

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 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 DedicatedCloudServiceClient

type DedicatedCloudServiceClient struct {
	BaseClient
}

DedicatedCloudServiceClient is the description of the new service

func NewDedicatedCloudServiceClient

func NewDedicatedCloudServiceClient(referer string, regionID string, subscriptionID string) DedicatedCloudServiceClient

NewDedicatedCloudServiceClient creates an instance of the DedicatedCloudServiceClient client.

func NewDedicatedCloudServiceClientWithBaseURI

func NewDedicatedCloudServiceClientWithBaseURI(baseURI string, referer string, regionID string, subscriptionID string) DedicatedCloudServiceClient

NewDedicatedCloudServiceClientWithBaseURI creates an instance of the DedicatedCloudServiceClient client.

func (DedicatedCloudServiceClient) CreateOrUpdate

func (client DedicatedCloudServiceClient) 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 (DedicatedCloudServiceClient) CreateOrUpdatePreparer

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

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (DedicatedCloudServiceClient) CreateOrUpdateResponder

func (client DedicatedCloudServiceClient) 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 (DedicatedCloudServiceClient) CreateOrUpdateSender

func (client DedicatedCloudServiceClient) 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 (DedicatedCloudServiceClient) Delete

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

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

func (DedicatedCloudServiceClient) DeletePreparer

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

DeletePreparer prepares the Delete request.

func (DedicatedCloudServiceClient) DeleteResponder

func (client DedicatedCloudServiceClient) 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 (DedicatedCloudServiceClient) DeleteSender

func (client DedicatedCloudServiceClient) DeleteSender(req *http.Request) (future DedicatedCloudServiceDeleteFuture, err error)

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

func (DedicatedCloudServiceClient) Get

func (client DedicatedCloudServiceClient) 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 (DedicatedCloudServiceClient) GetPreparer

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

GetPreparer prepares the Get request.

func (DedicatedCloudServiceClient) GetResponder

func (client DedicatedCloudServiceClient) 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 (DedicatedCloudServiceClient) GetSender

func (client DedicatedCloudServiceClient) 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 (DedicatedCloudServiceClient) ListByResourceGroup

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

ListByResourceGroup returns list of dedicated cloud service 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 (DedicatedCloudServiceClient) ListByResourceGroupComplete

func (client DedicatedCloudServiceClient) 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 (DedicatedCloudServiceClient) ListByResourceGroupPreparer

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

ListByResourceGroupPreparer prepares the ListByResourceGroup request.

func (DedicatedCloudServiceClient) ListByResourceGroupResponder

func (client DedicatedCloudServiceClient) 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 (DedicatedCloudServiceClient) ListByResourceGroupSender

func (client DedicatedCloudServiceClient) 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 (DedicatedCloudServiceClient) ListBySubscription

func (client DedicatedCloudServiceClient) 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 (DedicatedCloudServiceClient) ListBySubscriptionComplete

func (client DedicatedCloudServiceClient) 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 (DedicatedCloudServiceClient) ListBySubscriptionPreparer

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

ListBySubscriptionPreparer prepares the ListBySubscription request.

func (DedicatedCloudServiceClient) ListBySubscriptionResponder

func (client DedicatedCloudServiceClient) 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 (DedicatedCloudServiceClient) ListBySubscriptionSender

func (client DedicatedCloudServiceClient) 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 (DedicatedCloudServiceClient) Update

func (client DedicatedCloudServiceClient) 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 (DedicatedCloudServiceClient) UpdatePreparer

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

UpdatePreparer prepares the Update request.

func (DedicatedCloudServiceClient) UpdateResponder

func (client DedicatedCloudServiceClient) 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 (DedicatedCloudServiceClient) UpdateSender

func (client DedicatedCloudServiceClient) 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 DedicatedCloudServiceDeleteFuture

type DedicatedCloudServiceDeleteFuture struct {
	azure.Future
}

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

func (*DedicatedCloudServiceDeleteFuture) Result

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

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 - total nodes purchased
	Nodes *int32 `json:"nodes,omitempty"`
	// ServiceURL - link to a service management web portal
	ServiceURL *string `json:"serviceURL,omitempty"`
}

DedicatedCloudServiceProperties properties of dedicated cloud service

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 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

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 PrivateCloudByRegionClient

type PrivateCloudByRegionClient struct {
	BaseClient
}

PrivateCloudByRegionClient is the description of the new service

func NewPrivateCloudByRegionClient

func NewPrivateCloudByRegionClient(referer string, regionID string, subscriptionID string) PrivateCloudByRegionClient

NewPrivateCloudByRegionClient creates an instance of the PrivateCloudByRegionClient client.

func NewPrivateCloudByRegionClientWithBaseURI

func NewPrivateCloudByRegionClientWithBaseURI(baseURI string, referer string, regionID string, subscriptionID string) PrivateCloudByRegionClient

NewPrivateCloudByRegionClientWithBaseURI creates an instance of the PrivateCloudByRegionClient client.

func (PrivateCloudByRegionClient) List

func (client PrivateCloudByRegionClient) List(ctx context.Context) (result PrivateCloudListPage, err error)

List returns list of private clouds in particular region

func (PrivateCloudByRegionClient) ListComplete

func (client PrivateCloudByRegionClient) ListComplete(ctx context.Context) (result PrivateCloudListIterator, err error)

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

func (PrivateCloudByRegionClient) ListPreparer

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

ListPreparer prepares the List request.

func (PrivateCloudByRegionClient) ListResponder

func (client PrivateCloudByRegionClient) 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 (PrivateCloudByRegionClient) ListSender

func (client PrivateCloudByRegionClient) 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 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 ResourcePool

type ResourcePool struct {
	autorest.Response `json:"-"`
	// ID - resource pool id (privateCloudId:vsphereId)
	ID *string `json:"id,omitempty"`
	// Location - 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 ResourcePoolByPCClient

type ResourcePoolByPCClient struct {
	BaseClient
}

ResourcePoolByPCClient is the description of the new service

func NewResourcePoolByPCClient

func NewResourcePoolByPCClient(referer string, regionID string, subscriptionID string) ResourcePoolByPCClient

NewResourcePoolByPCClient creates an instance of the ResourcePoolByPCClient client.

func NewResourcePoolByPCClientWithBaseURI

func NewResourcePoolByPCClientWithBaseURI(baseURI string, referer string, regionID string, subscriptionID string) ResourcePoolByPCClient

NewResourcePoolByPCClientWithBaseURI creates an instance of the ResourcePoolByPCClient client.

func (ResourcePoolByPCClient) Get

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

Get returns resource pool templates by its name Parameters: pcName - the private cloud name resourcePoolName - resource pool id (vsphereId)

func (ResourcePoolByPCClient) GetPreparer

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

GetPreparer prepares the Get request.

func (ResourcePoolByPCClient) GetResponder

func (client ResourcePoolByPCClient) 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 (ResourcePoolByPCClient) GetSender

func (client ResourcePoolByPCClient) 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.

type ResourcePoolProperties

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

ResourcePoolProperties properties of resource pool

type ResourcePoolsByPCClient

type ResourcePoolsByPCClient struct {
	BaseClient
}

ResourcePoolsByPCClient is the description of the new service

func NewResourcePoolsByPCClient

func NewResourcePoolsByPCClient(referer string, regionID string, subscriptionID string) ResourcePoolsByPCClient

NewResourcePoolsByPCClient creates an instance of the ResourcePoolsByPCClient client.

func NewResourcePoolsByPCClientWithBaseURI

func NewResourcePoolsByPCClientWithBaseURI(baseURI string, referer string, regionID string, subscriptionID string) ResourcePoolsByPCClient

NewResourcePoolsByPCClientWithBaseURI creates an instance of the ResourcePoolsByPCClient client.

func (ResourcePoolsByPCClient) List

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

List returns list of resource pools in region for private cloud Parameters: pcName - the private cloud name

func (ResourcePoolsByPCClient) ListComplete

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

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

func (ResourcePoolsByPCClient) ListPreparer

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

ListPreparer prepares the List request.

func (ResourcePoolsByPCClient) ListResponder

func (client ResourcePoolsByPCClient) 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 (ResourcePoolsByPCClient) ListSender

func (client ResourcePoolsByPCClient) 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 SkusAvailabilityWithinRegionClient

type SkusAvailabilityWithinRegionClient struct {
	BaseClient
}

SkusAvailabilityWithinRegionClient is the description of the new service

func NewSkusAvailabilityWithinRegionClient

func NewSkusAvailabilityWithinRegionClient(referer string, regionID string, subscriptionID string) SkusAvailabilityWithinRegionClient

NewSkusAvailabilityWithinRegionClient creates an instance of the SkusAvailabilityWithinRegionClient client.

func NewSkusAvailabilityWithinRegionClientWithBaseURI

func NewSkusAvailabilityWithinRegionClientWithBaseURI(baseURI string, referer string, regionID string, subscriptionID string) SkusAvailabilityWithinRegionClient

NewSkusAvailabilityWithinRegionClientWithBaseURI creates an instance of the SkusAvailabilityWithinRegionClient client.

func (SkusAvailabilityWithinRegionClient) List

List returns list of available resources in region Parameters: skuID - sku id, if no sku is passed availability for all skus will be returned

func (SkusAvailabilityWithinRegionClient) ListComplete

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

func (SkusAvailabilityWithinRegionClient) ListPreparer

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

ListPreparer prepares the List request.

func (SkusAvailabilityWithinRegionClient) ListResponder

func (client SkusAvailabilityWithinRegionClient) 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 (SkusAvailabilityWithinRegionClient) ListSender

func (client SkusAvailabilityWithinRegionClient) 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 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.

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 UsagesWithinRegionClient

type UsagesWithinRegionClient struct {
	BaseClient
}

UsagesWithinRegionClient is the description of the new service

func NewUsagesWithinRegionClient

func NewUsagesWithinRegionClient(referer string, regionID string, subscriptionID string) UsagesWithinRegionClient

NewUsagesWithinRegionClient creates an instance of the UsagesWithinRegionClient client.

func NewUsagesWithinRegionClientWithBaseURI

func NewUsagesWithinRegionClientWithBaseURI(baseURI string, referer string, regionID string, subscriptionID string) UsagesWithinRegionClient

NewUsagesWithinRegionClientWithBaseURI creates an instance of the UsagesWithinRegionClient client.

func (UsagesWithinRegionClient) List

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

List returns list of usage in region Parameters: 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 (UsagesWithinRegionClient) ListComplete

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

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

func (UsagesWithinRegionClient) ListPreparer

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

ListPreparer prepares the List request.

func (UsagesWithinRegionClient) ListResponder

func (client UsagesWithinRegionClient) 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 (UsagesWithinRegionClient) ListSender

func (client UsagesWithinRegionClient) 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

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 VirtualMachineClient

type VirtualMachineClient struct {
	BaseClient
}

VirtualMachineClient is the description of the new service

func NewVirtualMachineClient

func NewVirtualMachineClient(referer string, regionID string, subscriptionID string) VirtualMachineClient

NewVirtualMachineClient creates an instance of the VirtualMachineClient client.

func NewVirtualMachineClientWithBaseURI

func NewVirtualMachineClientWithBaseURI(baseURI string, referer string, regionID string, subscriptionID string) VirtualMachineClient

NewVirtualMachineClientWithBaseURI creates an instance of the VirtualMachineClient client.

func (VirtualMachineClient) CreateOrUpdate

func (client VirtualMachineClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, virtualMachineName string, virtualMachineRequest VirtualMachine) (result VirtualMachineCreateOrUpdateFuture, 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 (VirtualMachineClient) CreateOrUpdatePreparer

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

CreateOrUpdatePreparer prepares the CreateOrUpdate request.

func (VirtualMachineClient) CreateOrUpdateResponder

func (client VirtualMachineClient) 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 (VirtualMachineClient) CreateOrUpdateSender

func (client VirtualMachineClient) CreateOrUpdateSender(req *http.Request) (future VirtualMachineCreateOrUpdateFuture, err error)

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

func (VirtualMachineClient) Delete

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

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

func (VirtualMachineClient) DeletePreparer

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

DeletePreparer prepares the Delete request.

func (VirtualMachineClient) DeleteResponder

func (client VirtualMachineClient) 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 (VirtualMachineClient) DeleteSender

func (client VirtualMachineClient) DeleteSender(req *http.Request) (future VirtualMachineDeleteFuture, err error)

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

func (VirtualMachineClient) Get

func (client VirtualMachineClient) 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 (VirtualMachineClient) GetPreparer

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

GetPreparer prepares the Get request.

func (VirtualMachineClient) GetResponder

func (client VirtualMachineClient) 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 (VirtualMachineClient) GetSender

func (client VirtualMachineClient) 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 (VirtualMachineClient) ListByResourceGroup

func (client VirtualMachineClient) 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 (VirtualMachineClient) ListByResourceGroupComplete

func (client VirtualMachineClient) 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 (VirtualMachineClient) ListByResourceGroupPreparer

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

ListByResourceGroupPreparer prepares the ListByResourceGroup request.

func (VirtualMachineClient) ListByResourceGroupResponder

func (client VirtualMachineClient) 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 (VirtualMachineClient) ListByResourceGroupSender

func (client VirtualMachineClient) 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 (VirtualMachineClient) ListBySubscription

func (client VirtualMachineClient) 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 (VirtualMachineClient) ListBySubscriptionComplete

func (client VirtualMachineClient) 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 (VirtualMachineClient) ListBySubscriptionPreparer

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

ListBySubscriptionPreparer prepares the ListBySubscription request.

func (VirtualMachineClient) ListBySubscriptionResponder

func (client VirtualMachineClient) 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 (VirtualMachineClient) ListBySubscriptionSender

func (client VirtualMachineClient) 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 (VirtualMachineClient) Start

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

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

func (VirtualMachineClient) StartPreparer

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

StartPreparer prepares the Start request.

func (VirtualMachineClient) StartResponder

func (client VirtualMachineClient) 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 (VirtualMachineClient) StartSender

func (client VirtualMachineClient) StartSender(req *http.Request) (future VirtualMachineStartFuture, err error)

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

func (VirtualMachineClient) Stop

func (client VirtualMachineClient) Stop(ctx context.Context, resourceGroupName string, virtualMachineName string, mParameter *VirtualMachineStopMode, mode StopMode) (result VirtualMachineStopFuture, 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 (VirtualMachineClient) StopPreparer

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

StopPreparer prepares the Stop request.

func (VirtualMachineClient) StopResponder

func (client VirtualMachineClient) 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 (VirtualMachineClient) StopSender

func (client VirtualMachineClient) StopSender(req *http.Request) (future VirtualMachineStopFuture, err error)

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

func (VirtualMachineClient) Update

func (client VirtualMachineClient) Update(ctx context.Context, resourceGroupName string, virtualMachineName string, virtualMachineRequest PatchPayload) (result VirtualMachineUpdateFuture, 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 (VirtualMachineClient) UpdatePreparer

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

UpdatePreparer prepares the Update request.

func (VirtualMachineClient) UpdateResponder

func (client VirtualMachineClient) 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 (VirtualMachineClient) UpdateSender

func (client VirtualMachineClient) UpdateSender(req *http.Request) (future VirtualMachineUpdateFuture, err error)

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

type VirtualMachineCreateOrUpdateFuture

type VirtualMachineCreateOrUpdateFuture struct {
	azure.Future
}

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

func (*VirtualMachineCreateOrUpdateFuture) Result

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

type VirtualMachineDeleteFuture

type VirtualMachineDeleteFuture struct {
	azure.Future
}

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

func (*VirtualMachineDeleteFuture) Result

func (future *VirtualMachineDeleteFuture) Result(client VirtualMachineClient) (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 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"`
	// 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 - The name of Guest OS
	GuestOS *string `json:"guestOS,omitempty"`
	// GuestOSType - 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
	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
	Username *string `json:"username,omitempty"`
	// VSphereNetworks - The list of Virtual VSphere Networks
	VSphereNetworks *[]string `json:"vSphereNetworks,omitempty"`
	// VMID - READ-ONLY; The internal id of Virtual Machine in VCenter
	VMID *string `json:"vmId,omitempty"`
	// Vmwaretools - READ-ONLY; VMware tools version
	Vmwaretools *string `json:"vmwaretools,omitempty"`
}

VirtualMachineProperties properties of virtual machine

type VirtualMachineStartFuture

type VirtualMachineStartFuture struct {
	azure.Future
}

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

func (*VirtualMachineStartFuture) Result

func (future *VirtualMachineStartFuture) Result(client VirtualMachineClient) (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 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 VirtualMachineStopFuture

type VirtualMachineStopFuture struct {
	azure.Future
}

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

func (*VirtualMachineStopFuture) Result

func (future *VirtualMachineStopFuture) Result(client VirtualMachineClient) (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 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 VirtualMachineTemplateByPCClient

type VirtualMachineTemplateByPCClient struct {
	BaseClient
}

VirtualMachineTemplateByPCClient is the description of the new service

func NewVirtualMachineTemplateByPCClient

func NewVirtualMachineTemplateByPCClient(referer string, regionID string, subscriptionID string) VirtualMachineTemplateByPCClient

NewVirtualMachineTemplateByPCClient creates an instance of the VirtualMachineTemplateByPCClient client.

func NewVirtualMachineTemplateByPCClientWithBaseURI

func NewVirtualMachineTemplateByPCClientWithBaseURI(baseURI string, referer string, regionID string, subscriptionID string) VirtualMachineTemplateByPCClient

NewVirtualMachineTemplateByPCClientWithBaseURI creates an instance of the VirtualMachineTemplateByPCClient client.

func (VirtualMachineTemplateByPCClient) Get

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

Get returns virtual machine templates by its name Parameters: pcName - the private cloud name virtualMachineTemplateName - virtual machine template id (vsphereId)

func (VirtualMachineTemplateByPCClient) GetPreparer

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

GetPreparer prepares the Get request.

func (VirtualMachineTemplateByPCClient) GetResponder

func (client VirtualMachineTemplateByPCClient) 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 (VirtualMachineTemplateByPCClient) GetSender

func (client VirtualMachineTemplateByPCClient) 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.

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 - The Guest OS
	GuestOS *string `json:"guestOS,omitempty"`
	// GuestOSType - The Guest OS types
	GuestOSType *string `json:"guestOSType,omitempty"`
	// Nics - The list of Virtual NICs
	Nics *[]VirtualNic `json:"nics,omitempty"`
	// NumberOfCores - The number of CPU cores
	NumberOfCores *int32 `json:"numberOfCores,omitempty"`
	// Path - path to folder
	Path *string `json:"path,omitempty"`
	// PrivateCloudID - The Private Cloud Id
	PrivateCloudID *string `json:"privateCloudId,omitempty"`
	// VSphereNetworks - The list of VSphere networks
	VSphereNetworks *[]string `json:"vSphereNetworks,omitempty"`
	// VSphereTags - The tags from VSphere
	VSphereTags *[]string `json:"vSphereTags,omitempty"`
	// Vmwaretools - READ-ONLY; The VMware tools version
	Vmwaretools *string `json:"vmwaretools,omitempty"`
}

VirtualMachineTemplateProperties properties of virtual machine template

type VirtualMachineTemplatesByPCClient

type VirtualMachineTemplatesByPCClient struct {
	BaseClient
}

VirtualMachineTemplatesByPCClient is the description of the new service

func NewVirtualMachineTemplatesByPCClient

func NewVirtualMachineTemplatesByPCClient(referer string, regionID string, subscriptionID string) VirtualMachineTemplatesByPCClient

NewVirtualMachineTemplatesByPCClient creates an instance of the VirtualMachineTemplatesByPCClient client.

func NewVirtualMachineTemplatesByPCClientWithBaseURI

func NewVirtualMachineTemplatesByPCClientWithBaseURI(baseURI string, referer string, regionID string, subscriptionID string) VirtualMachineTemplatesByPCClient

NewVirtualMachineTemplatesByPCClientWithBaseURI creates an instance of the VirtualMachineTemplatesByPCClient client.

func (VirtualMachineTemplatesByPCClient) List

func (client VirtualMachineTemplatesByPCClient) List(ctx context.Context, pcName 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 resourcePoolName - resource pool used to derive vSphere cluster which contains VM templates

func (VirtualMachineTemplatesByPCClient) ListComplete

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

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

func (VirtualMachineTemplatesByPCClient) ListPreparer

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

ListPreparer prepares the List request.

func (VirtualMachineTemplatesByPCClient) ListResponder

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

func (VirtualMachineTemplatesByPCClient) ListSender

func (client VirtualMachineTemplatesByPCClient) 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 VirtualMachineUpdateFuture

type VirtualMachineUpdateFuture struct {
	azure.Future
}

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

func (*VirtualMachineUpdateFuture) Result

func (future *VirtualMachineUpdateFuture) Result(client VirtualMachineClient) (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 - 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 VirtualNetworkByPCClient

type VirtualNetworkByPCClient struct {
	BaseClient
}

VirtualNetworkByPCClient is the description of the new service

func NewVirtualNetworkByPCClient

func NewVirtualNetworkByPCClient(referer string, regionID string, subscriptionID string) VirtualNetworkByPCClient

NewVirtualNetworkByPCClient creates an instance of the VirtualNetworkByPCClient client.

func NewVirtualNetworkByPCClientWithBaseURI

func NewVirtualNetworkByPCClientWithBaseURI(baseURI string, referer string, regionID string, subscriptionID string) VirtualNetworkByPCClient

NewVirtualNetworkByPCClientWithBaseURI creates an instance of the VirtualNetworkByPCClient client.

func (VirtualNetworkByPCClient) Get

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

Get return virtual network by its name Parameters: pcName - the private cloud name virtualNetworkName - virtual network id (vsphereId)

func (VirtualNetworkByPCClient) GetPreparer

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

GetPreparer prepares the Get request.

func (VirtualNetworkByPCClient) GetResponder

func (client VirtualNetworkByPCClient) 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 (VirtualNetworkByPCClient) GetSender

func (client VirtualNetworkByPCClient) 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.

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 VirtualNetworksByPCClient

type VirtualNetworksByPCClient struct {
	BaseClient
}

VirtualNetworksByPCClient is the description of the new service

func NewVirtualNetworksByPCClient

func NewVirtualNetworksByPCClient(referer string, regionID string, subscriptionID string) VirtualNetworksByPCClient

NewVirtualNetworksByPCClient creates an instance of the VirtualNetworksByPCClient client.

func NewVirtualNetworksByPCClientWithBaseURI

func NewVirtualNetworksByPCClientWithBaseURI(baseURI string, referer string, regionID string, subscriptionID string) VirtualNetworksByPCClient

NewVirtualNetworksByPCClientWithBaseURI creates an instance of the VirtualNetworksByPCClient client.

func (VirtualNetworksByPCClient) List

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

List return list of virtual networks in location for private cloud Parameters: pcName - the private cloud name resourcePoolName - resource pool used to derive vSphere cluster which contains virtual networks

func (VirtualNetworksByPCClient) ListComplete

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

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

func (VirtualNetworksByPCClient) ListPreparer

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

ListPreparer prepares the List request.

func (VirtualNetworksByPCClient) ListResponder

func (client VirtualNetworksByPCClient) 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 (VirtualNetworksByPCClient) ListSender

func (client VirtualNetworksByPCClient) 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 {
	// IPAddresses - NIC ip address
	IPAddresses *[]string `json:"ipAddresses,omitempty"`
	// MacAddress - NIC MAC address
	MacAddress *string `json:"macAddress,omitempty"`
	// Network - The list of Virtual Networks
	Network *VirtualNetwork `json:"network,omitempty"`
	// NicType - NIC type. Possible values include: 'E1000', 'E1000E', 'PCNET32', 'VMXNET', 'VMXNET2', 'VMXNET3'
	NicType NICType `json:"nicType,omitempty"`
	// PowerOnBoot - Is NIC powered on/off on boot
	PowerOnBoot *bool `json:"powerOnBoot,omitempty"`
	// VirtualNicID - NIC id
	VirtualNicID *string `json:"virtualNicId,omitempty"`
	// VirtualNicName - READ-ONLY; NIC name
	VirtualNicName *string `json:"virtualNicName,omitempty"`
}

VirtualNic virtual NIC model

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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