Documentation ¶
Index ¶
- func ValidateClusterID(input interface{}, key string) (warnings []string, errors []error)
- type Cluster
- type ClusterId
- type ClusterOperationPredicate
- type ClusterProperties
- type ClustersClient
- func (c ClustersClient) Create(ctx context.Context, id ClusterId, input Cluster) (result CreateOperationResponse, err error)
- func (c ClustersClient) CreateThenPoll(ctx context.Context, id ClusterId, input Cluster) error
- func (c ClustersClient) Delete(ctx context.Context, id ClusterId, options DeleteOperationOptions) (result DeleteOperationResponse, err error)
- func (c ClustersClient) DeleteThenPoll(ctx context.Context, id ClusterId, options DeleteOperationOptions) error
- func (c ClustersClient) Get(ctx context.Context, id ClusterId) (result GetOperationResponse, err error)
- func (c ClustersClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error)
- func (c ClustersClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error)
- func (c ClustersClient) ListByResourceGroupComplete(ctx context.Context, id commonids.ResourceGroupId) (ListByResourceGroupCompleteResult, error)
- func (c ClustersClient) ListByResourceGroupCompleteMatchingPredicate(ctx context.Context, id commonids.ResourceGroupId, ...) (result ListByResourceGroupCompleteResult, err error)
- func (c ClustersClient) ListComplete(ctx context.Context, id commonids.SubscriptionId) (ListCompleteResult, error)
- func (c ClustersClient) ListCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, ...) (result ListCompleteResult, err error)
- func (c ClustersClient) Update(ctx context.Context, id ClusterId, input ResourcePatch) (result UpdateOperationResponse, err error)
- type CreateOperationResponse
- type DeleteOperationOptions
- type DeleteOperationResponse
- type ExtendedLocation
- type GetOperationResponse
- type ListByResourceGroupCompleteResult
- type ListByResourceGroupOperationResponse
- type ListCompleteResult
- type ListOperationResponse
- type ResourcePatch
- type ResourceStatus
- type UpdateOperationResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ValidateClusterID ¶
ValidateClusterID checks that 'input' can be parsed as a Cluster ID
Types ¶
type Cluster ¶
type Cluster struct { ExtendedLocation *ExtendedLocation `json:"extendedLocation,omitempty"` Id *string `json:"id,omitempty"` Kind *string `json:"kind,omitempty"` Location string `json:"location"` Name *string `json:"name,omitempty"` Properties ClusterProperties `json:"properties"` SystemData *systemdata.SystemData `json:"systemData,omitempty"` Tags *map[string]string `json:"tags,omitempty"` Type *string `json:"type,omitempty"` }
type ClusterId ¶
ClusterId is a struct representing the Resource ID for a Cluster
func NewClusterID ¶
NewClusterID returns a new ClusterId struct
func ParseClusterID ¶
ParseClusterID parses 'input' into a ClusterId
func ParseClusterIDInsensitively ¶
ParseClusterIDInsensitively parses 'input' case-insensitively into a ClusterId note: this method should only be used for API response data and not user input
func (*ClusterId) FromParseResult ¶
func (id *ClusterId) FromParseResult(input resourceids.ParseResult) error
func (ClusterId) Segments ¶
func (id ClusterId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Cluster ID
type ClusterOperationPredicate ¶
type ClusterOperationPredicate struct { Id *string Kind *string Location *string Name *string Type *string }
func (ClusterOperationPredicate) Matches ¶
func (p ClusterOperationPredicate) Matches(input Cluster) bool
type ClusterProperties ¶
type ClusterProperties struct { CustomResourceName *string `json:"customResourceName,omitempty"` DatastoreIds *[]string `json:"datastoreIds,omitempty"` InventoryItemId *string `json:"inventoryItemId,omitempty"` MoName *string `json:"moName,omitempty"` MoRefId *string `json:"moRefId,omitempty"` NetworkIds *[]string `json:"networkIds,omitempty"` ProvisioningState *string `json:"provisioningState,omitempty"` Statuses *[]ResourceStatus `json:"statuses,omitempty"` Uuid *string `json:"uuid,omitempty"` VCenterId *string `json:"vCenterId,omitempty"` }
type ClustersClient ¶
type ClustersClient struct {
Client *resourcemanager.Client
}
func NewClustersClientWithBaseURI ¶
func NewClustersClientWithBaseURI(sdkApi sdkEnv.Api) (*ClustersClient, error)
func (ClustersClient) Create ¶
func (c ClustersClient) Create(ctx context.Context, id ClusterId, input Cluster) (result CreateOperationResponse, err error)
Create ...
func (ClustersClient) CreateThenPoll ¶
CreateThenPoll performs Create then polls until it's completed
func (ClustersClient) Delete ¶
func (c ClustersClient) Delete(ctx context.Context, id ClusterId, options DeleteOperationOptions) (result DeleteOperationResponse, err error)
Delete ...
func (ClustersClient) DeleteThenPoll ¶
func (c ClustersClient) DeleteThenPoll(ctx context.Context, id ClusterId, options DeleteOperationOptions) error
DeleteThenPoll performs Delete then polls until it's completed
func (ClustersClient) Get ¶
func (c ClustersClient) Get(ctx context.Context, id ClusterId) (result GetOperationResponse, err error)
Get ...
func (ClustersClient) List ¶
func (c ClustersClient) List(ctx context.Context, id commonids.SubscriptionId) (result ListOperationResponse, err error)
List ...
func (ClustersClient) ListByResourceGroup ¶
func (c ClustersClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (result ListByResourceGroupOperationResponse, err error)
ListByResourceGroup ...
func (ClustersClient) ListByResourceGroupComplete ¶
func (c ClustersClient) ListByResourceGroupComplete(ctx context.Context, id commonids.ResourceGroupId) (ListByResourceGroupCompleteResult, error)
ListByResourceGroupComplete retrieves all the results into a single object
func (ClustersClient) ListByResourceGroupCompleteMatchingPredicate ¶
func (c ClustersClient) ListByResourceGroupCompleteMatchingPredicate(ctx context.Context, id commonids.ResourceGroupId, predicate ClusterOperationPredicate) (result ListByResourceGroupCompleteResult, err error)
ListByResourceGroupCompleteMatchingPredicate retrieves all the results and then applies the predicate
func (ClustersClient) ListComplete ¶
func (c ClustersClient) ListComplete(ctx context.Context, id commonids.SubscriptionId) (ListCompleteResult, error)
ListComplete retrieves all the results into a single object
func (ClustersClient) ListCompleteMatchingPredicate ¶
func (c ClustersClient) ListCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, predicate ClusterOperationPredicate) (result ListCompleteResult, err error)
ListCompleteMatchingPredicate retrieves all the results and then applies the predicate
func (ClustersClient) Update ¶
func (c ClustersClient) Update(ctx context.Context, id ClusterId, input ResourcePatch) (result UpdateOperationResponse, err error)
Update ...
type CreateOperationResponse ¶
type DeleteOperationOptions ¶
type DeleteOperationOptions struct {
Force *bool
}
func DefaultDeleteOperationOptions ¶
func DefaultDeleteOperationOptions() DeleteOperationOptions
func (DeleteOperationOptions) ToHeaders ¶
func (o DeleteOperationOptions) ToHeaders() *client.Headers
func (DeleteOperationOptions) ToOData ¶
func (o DeleteOperationOptions) ToOData() *odata.Query
func (DeleteOperationOptions) ToQuery ¶
func (o DeleteOperationOptions) ToQuery() *client.QueryParams
type DeleteOperationResponse ¶
type ExtendedLocation ¶
type GetOperationResponse ¶
type ListCompleteResult ¶
type ListOperationResponse ¶
type ResourcePatch ¶
type ResourceStatus ¶
type ResourceStatus struct { LastUpdatedAt *string `json:"lastUpdatedAt,omitempty"` Message *string `json:"message,omitempty"` Reason *string `json:"reason,omitempty"` Severity *string `json:"severity,omitempty"` Status *string `json:"status,omitempty"` Type *string `json:"type,omitempty"` }
func (*ResourceStatus) GetLastUpdatedAtAsTime ¶
func (o *ResourceStatus) GetLastUpdatedAtAsTime() (*time.Time, error)
func (*ResourceStatus) SetLastUpdatedAtAsTime ¶
func (o *ResourceStatus) SetLastUpdatedAtAsTime(input time.Time)