Documentation ¶
Index ¶
- func PossibleValuesForProvisioningState() []string
- func PossibleValuesForStatus() []string
- func ValidateClusterID(input interface{}, key string) (warnings []string, errors []error)
- type Cluster
- type ClusterId
- type ClusterNode
- type ClusterOperationPredicate
- type ClusterProperties
- func (o *ClusterProperties) GetLastBillingTimestampAsTime() (*time.Time, error)
- func (o *ClusterProperties) GetLastSyncTimestampAsTime() (*time.Time, error)
- func (o *ClusterProperties) GetRegistrationTimestampAsTime() (*time.Time, error)
- func (o *ClusterProperties) SetLastBillingTimestampAsTime(input time.Time)
- func (o *ClusterProperties) SetLastSyncTimestampAsTime(input time.Time)
- func (o *ClusterProperties) SetRegistrationTimestampAsTime(input time.Time)
- type ClusterReportedProperties
- type ClusterUpdate
- type ClustersClient
- func (c ClustersClient) Create(ctx context.Context, id ClusterId, input Cluster) (result CreateOperationResponse, err error)
- func (c ClustersClient) Delete(ctx context.Context, id ClusterId) (result DeleteOperationResponse, err error)
- func (c ClustersClient) Get(ctx context.Context, id ClusterId) (result GetOperationResponse, err error)
- func (c ClustersClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (resp 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, ...) (resp ListByResourceGroupCompleteResult, err error)
- func (c ClustersClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (resp ListBySubscriptionOperationResponse, err error)
- func (c ClustersClient) ListBySubscriptionComplete(ctx context.Context, id commonids.SubscriptionId) (ListBySubscriptionCompleteResult, error)
- func (c ClustersClient) ListBySubscriptionCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, ...) (resp ListBySubscriptionCompleteResult, err error)
- func (c ClustersClient) Update(ctx context.Context, id ClusterId, input ClusterUpdate) (result UpdateOperationResponse, err error)
- type CreateOperationResponse
- type DeleteOperationResponse
- type GetOperationResponse
- type ListByResourceGroupCompleteResult
- type ListByResourceGroupOperationResponse
- type ListBySubscriptionCompleteResult
- type ListBySubscriptionOperationResponse
- type ProvisioningState
- type Status
- type UpdateOperationResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForProvisioningState ¶
func PossibleValuesForProvisioningState() []string
func PossibleValuesForStatus ¶
func PossibleValuesForStatus() []string
func ValidateClusterID ¶
ValidateClusterID checks that 'input' can be parsed as a Cluster ID
Types ¶
type Cluster ¶
type Cluster struct { Id *string `json:"id,omitempty"` Location string `json:"location"` Name *string `json:"name,omitempty"` Properties *ClusterProperties `json:"properties,omitempty"` 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) Segments ¶
func (id ClusterId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Cluster ID
type ClusterNode ¶
type ClusterNode struct { CoreCount *float64 `json:"coreCount,omitempty"` Id *float64 `json:"id,omitempty"` Manufacturer *string `json:"manufacturer,omitempty"` MemoryInGiB *float64 `json:"memoryInGiB,omitempty"` Model *string `json:"model,omitempty"` Name *string `json:"name,omitempty"` OsName *string `json:"osName,omitempty"` OsVersion *string `json:"osVersion,omitempty"` SerialNumber *string `json:"serialNumber,omitempty"` }
type ClusterOperationPredicate ¶
func (ClusterOperationPredicate) Matches ¶
func (p ClusterOperationPredicate) Matches(input Cluster) bool
type ClusterProperties ¶
type ClusterProperties struct { AadClientId string `json:"aadClientId"` AadTenantId string `json:"aadTenantId"` BillingModel *string `json:"billingModel,omitempty"` CloudId *string `json:"cloudId,omitempty"` LastBillingTimestamp *string `json:"lastBillingTimestamp,omitempty"` LastSyncTimestamp *string `json:"lastSyncTimestamp,omitempty"` ProvisioningState *ProvisioningState `json:"provisioningState,omitempty"` RegistrationTimestamp *string `json:"registrationTimestamp,omitempty"` ReportedProperties *ClusterReportedProperties `json:"reportedProperties,omitempty"` Status *Status `json:"status,omitempty"` TrialDaysRemaining *float64 `json:"trialDaysRemaining,omitempty"` }
func (*ClusterProperties) GetLastBillingTimestampAsTime ¶
func (o *ClusterProperties) GetLastBillingTimestampAsTime() (*time.Time, error)
func (*ClusterProperties) GetLastSyncTimestampAsTime ¶
func (o *ClusterProperties) GetLastSyncTimestampAsTime() (*time.Time, error)
func (*ClusterProperties) GetRegistrationTimestampAsTime ¶
func (o *ClusterProperties) GetRegistrationTimestampAsTime() (*time.Time, error)
func (*ClusterProperties) SetLastBillingTimestampAsTime ¶
func (o *ClusterProperties) SetLastBillingTimestampAsTime(input time.Time)
func (*ClusterProperties) SetLastSyncTimestampAsTime ¶
func (o *ClusterProperties) SetLastSyncTimestampAsTime(input time.Time)
func (*ClusterProperties) SetRegistrationTimestampAsTime ¶
func (o *ClusterProperties) SetRegistrationTimestampAsTime(input time.Time)
type ClusterReportedProperties ¶
type ClusterReportedProperties struct { ClusterId *string `json:"clusterId,omitempty"` ClusterName *string `json:"clusterName,omitempty"` ClusterVersion *string `json:"clusterVersion,omitempty"` LastUpdated *string `json:"lastUpdated,omitempty"` Nodes *[]ClusterNode `json:"nodes,omitempty"` }
func (*ClusterReportedProperties) GetLastUpdatedAsTime ¶
func (o *ClusterReportedProperties) GetLastUpdatedAsTime() (*time.Time, error)
func (*ClusterReportedProperties) SetLastUpdatedAsTime ¶
func (o *ClusterReportedProperties) SetLastUpdatedAsTime(input time.Time)
type ClusterUpdate ¶
type ClustersClient ¶
func NewClustersClientWithBaseURI ¶
func NewClustersClientWithBaseURI(endpoint string) ClustersClient
func (ClustersClient) Create ¶
func (c ClustersClient) Create(ctx context.Context, id ClusterId, input Cluster) (result CreateOperationResponse, err error)
Create ...
func (ClustersClient) Delete ¶
func (c ClustersClient) Delete(ctx context.Context, id ClusterId) (result DeleteOperationResponse, err error)
Delete ...
func (ClustersClient) Get ¶
func (c ClustersClient) Get(ctx context.Context, id ClusterId) (result GetOperationResponse, err error)
Get ...
func (ClustersClient) ListByResourceGroup ¶
func (c ClustersClient) ListByResourceGroup(ctx context.Context, id commonids.ResourceGroupId) (resp ListByResourceGroupOperationResponse, err error)
ListByResourceGroup ...
func (ClustersClient) ListByResourceGroupComplete ¶
func (c ClustersClient) ListByResourceGroupComplete(ctx context.Context, id commonids.ResourceGroupId) (ListByResourceGroupCompleteResult, error)
ListByResourceGroupComplete retrieves all of the results into a single object
func (ClustersClient) ListByResourceGroupCompleteMatchingPredicate ¶
func (c ClustersClient) ListByResourceGroupCompleteMatchingPredicate(ctx context.Context, id commonids.ResourceGroupId, predicate ClusterOperationPredicate) (resp ListByResourceGroupCompleteResult, err error)
ListByResourceGroupCompleteMatchingPredicate retrieves all of the results and then applied the predicate
func (ClustersClient) ListBySubscription ¶
func (c ClustersClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (resp ListBySubscriptionOperationResponse, err error)
ListBySubscription ...
func (ClustersClient) ListBySubscriptionComplete ¶
func (c ClustersClient) ListBySubscriptionComplete(ctx context.Context, id commonids.SubscriptionId) (ListBySubscriptionCompleteResult, error)
ListBySubscriptionComplete retrieves all of the results into a single object
func (ClustersClient) ListBySubscriptionCompleteMatchingPredicate ¶
func (c ClustersClient) ListBySubscriptionCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, predicate ClusterOperationPredicate) (resp ListBySubscriptionCompleteResult, err error)
ListBySubscriptionCompleteMatchingPredicate retrieves all of the results and then applied the predicate
func (ClustersClient) Update ¶
func (c ClustersClient) Update(ctx context.Context, id ClusterId, input ClusterUpdate) (result UpdateOperationResponse, err error)
Update ...
type CreateOperationResponse ¶
type DeleteOperationResponse ¶
type GetOperationResponse ¶
type ListByResourceGroupCompleteResult ¶
type ListByResourceGroupCompleteResult struct {
Items []Cluster
}
type ListByResourceGroupOperationResponse ¶
type ListByResourceGroupOperationResponse struct { HttpResponse *http.Response Model *[]Cluster // contains filtered or unexported fields }
func (ListByResourceGroupOperationResponse) HasMore ¶
func (r ListByResourceGroupOperationResponse) HasMore() bool
func (ListByResourceGroupOperationResponse) LoadMore ¶
func (r ListByResourceGroupOperationResponse) LoadMore(ctx context.Context) (resp ListByResourceGroupOperationResponse, err error)
type ListBySubscriptionCompleteResult ¶
type ListBySubscriptionCompleteResult struct {
Items []Cluster
}
type ListBySubscriptionOperationResponse ¶
type ListBySubscriptionOperationResponse struct { HttpResponse *http.Response Model *[]Cluster // contains filtered or unexported fields }
func (ListBySubscriptionOperationResponse) HasMore ¶
func (r ListBySubscriptionOperationResponse) HasMore() bool
func (ListBySubscriptionOperationResponse) LoadMore ¶
func (r ListBySubscriptionOperationResponse) LoadMore(ctx context.Context) (resp ListBySubscriptionOperationResponse, err error)
type ProvisioningState ¶
type ProvisioningState string
const ( ProvisioningStateAccepted ProvisioningState = "Accepted" ProvisioningStateCanceled ProvisioningState = "Canceled" ProvisioningStateFailed ProvisioningState = "Failed" ProvisioningStateProvisioning ProvisioningState = "Provisioning" ProvisioningStateSucceeded ProvisioningState = "Succeeded" )
type UpdateOperationResponse ¶
Source Files ¶
- client.go
- constants.go
- id_cluster.go
- method_create_autorest.go
- method_delete_autorest.go
- method_get_autorest.go
- method_listbyresourcegroup_autorest.go
- method_listbysubscription_autorest.go
- method_update_autorest.go
- model_cluster.go
- model_clusternode.go
- model_clusterproperties.go
- model_clusterreportedproperties.go
- model_clusterupdate.go
- predicates.go
- version.go