Documentation ¶
Index ¶
- func PossibleValuesForClusterProvisioningState() []string
- func PossibleValuesForClusterSkuName() []string
- func PossibleValuesForJobState() []string
- func ValidateClusterID(input interface{}, key string) (warnings []string, errors []error)
- type Cluster
- type ClusterId
- type ClusterJob
- type ClusterJobOperationPredicate
- type ClusterOperationPredicate
- type ClusterProperties
- type ClusterProvisioningState
- type ClusterSku
- type ClusterSkuName
- type ClustersClient
- func (c ClustersClient) CreateOrUpdate(ctx context.Context, id ClusterId, input Cluster, ...) (result CreateOrUpdateOperationResponse, err error)
- func (c ClustersClient) CreateOrUpdateThenPoll(ctx context.Context, id ClusterId, input Cluster, ...) error
- func (c ClustersClient) Delete(ctx context.Context, id ClusterId) (result DeleteOperationResponse, err error)
- func (c ClustersClient) DeleteThenPoll(ctx context.Context, id ClusterId) error
- func (c ClustersClient) Get(ctx context.Context, id ClusterId) (result GetOperationResponse, 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) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result 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, ...) (result ListBySubscriptionCompleteResult, err error)
- func (c ClustersClient) ListStreamingJobs(ctx context.Context, id ClusterId) (result ListStreamingJobsOperationResponse, err error)
- func (c ClustersClient) ListStreamingJobsComplete(ctx context.Context, id ClusterId) (ListStreamingJobsCompleteResult, error)
- func (c ClustersClient) ListStreamingJobsCompleteMatchingPredicate(ctx context.Context, id ClusterId, predicate ClusterJobOperationPredicate) (result ListStreamingJobsCompleteResult, err error)
- func (c ClustersClient) Update(ctx context.Context, id ClusterId, input Cluster, ...) (result UpdateOperationResponse, err error)
- func (c ClustersClient) UpdateThenPoll(ctx context.Context, id ClusterId, input Cluster, ...) error
- type CreateOrUpdateOperationOptions
- type CreateOrUpdateOperationResponse
- type DeleteOperationResponse
- type GetOperationResponse
- type JobState
- type ListByResourceGroupCompleteResult
- type ListByResourceGroupOperationResponse
- type ListBySubscriptionCompleteResult
- type ListBySubscriptionOperationResponse
- type ListStreamingJobsCompleteResult
- type ListStreamingJobsOperationResponse
- type UpdateOperationOptions
- type UpdateOperationResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForClusterProvisioningState ¶
func PossibleValuesForClusterProvisioningState() []string
func PossibleValuesForClusterSkuName ¶
func PossibleValuesForClusterSkuName() []string
func PossibleValuesForJobState ¶
func PossibleValuesForJobState() []string
func ValidateClusterID ¶
ValidateClusterID checks that 'input' can be parsed as a Cluster ID
Types ¶
type Cluster ¶
type Cluster struct { Etag *string `json:"etag,omitempty"` Id *string `json:"id,omitempty"` Location *string `json:"location,omitempty"` Name *string `json:"name,omitempty"` Properties *ClusterProperties `json:"properties,omitempty"` Sku *ClusterSku `json:"sku,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 ClusterJob ¶
type ClusterJobOperationPredicate ¶
func (ClusterJobOperationPredicate) Matches ¶
func (p ClusterJobOperationPredicate) Matches(input ClusterJob) bool
type ClusterOperationPredicate ¶
type ClusterOperationPredicate struct { Etag *string Id *string Location *string Name *string Type *string }
func (ClusterOperationPredicate) Matches ¶
func (p ClusterOperationPredicate) Matches(input Cluster) bool
type ClusterProperties ¶
type ClusterProperties struct { CapacityAllocated *int64 `json:"capacityAllocated,omitempty"` CapacityAssigned *int64 `json:"capacityAssigned,omitempty"` ClusterId *string `json:"clusterId,omitempty"` CreatedDate *string `json:"createdDate,omitempty"` ProvisioningState *ClusterProvisioningState `json:"provisioningState,omitempty"` }
func (*ClusterProperties) GetCreatedDateAsTime ¶
func (o *ClusterProperties) GetCreatedDateAsTime() (*time.Time, error)
func (*ClusterProperties) SetCreatedDateAsTime ¶
func (o *ClusterProperties) SetCreatedDateAsTime(input time.Time)
type ClusterProvisioningState ¶
type ClusterProvisioningState string
const ( ClusterProvisioningStateCanceled ClusterProvisioningState = "Canceled" ClusterProvisioningStateFailed ClusterProvisioningState = "Failed" ClusterProvisioningStateInProgress ClusterProvisioningState = "InProgress" ClusterProvisioningStateSucceeded ClusterProvisioningState = "Succeeded" )
func (*ClusterProvisioningState) UnmarshalJSON ¶ added in v0.20240208.1095436
func (s *ClusterProvisioningState) UnmarshalJSON(bytes []byte) error
type ClusterSku ¶
type ClusterSku struct { Capacity *int64 `json:"capacity,omitempty"` Name *ClusterSkuName `json:"name,omitempty"` }
type ClusterSkuName ¶
type ClusterSkuName string
const (
ClusterSkuNameDefault ClusterSkuName = "Default"
)
func (*ClusterSkuName) UnmarshalJSON ¶ added in v0.20240208.1095436
func (s *ClusterSkuName) UnmarshalJSON(bytes []byte) error
type ClustersClient ¶
type ClustersClient struct {
Client *resourcemanager.Client
}
func NewClustersClientWithBaseURI ¶
func NewClustersClientWithBaseURI(sdkApi sdkEnv.Api) (*ClustersClient, error)
func (ClustersClient) CreateOrUpdate ¶
func (c ClustersClient) CreateOrUpdate(ctx context.Context, id ClusterId, input Cluster, options CreateOrUpdateOperationOptions) (result CreateOrUpdateOperationResponse, err error)
CreateOrUpdate ...
func (ClustersClient) CreateOrUpdateThenPoll ¶
func (c ClustersClient) CreateOrUpdateThenPoll(ctx context.Context, id ClusterId, input Cluster, options CreateOrUpdateOperationOptions) error
CreateOrUpdateThenPoll performs CreateOrUpdate then polls until it's completed
func (ClustersClient) Delete ¶
func (c ClustersClient) Delete(ctx context.Context, id ClusterId) (result DeleteOperationResponse, err error)
Delete ...
func (ClustersClient) DeleteThenPoll ¶
func (c ClustersClient) DeleteThenPoll(ctx context.Context, id ClusterId) 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) 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) ListBySubscription ¶
func (c ClustersClient) ListBySubscription(ctx context.Context, id commonids.SubscriptionId) (result ListBySubscriptionOperationResponse, err error)
ListBySubscription ...
func (ClustersClient) ListBySubscriptionComplete ¶
func (c ClustersClient) ListBySubscriptionComplete(ctx context.Context, id commonids.SubscriptionId) (ListBySubscriptionCompleteResult, error)
ListBySubscriptionComplete retrieves all the results into a single object
func (ClustersClient) ListBySubscriptionCompleteMatchingPredicate ¶
func (c ClustersClient) ListBySubscriptionCompleteMatchingPredicate(ctx context.Context, id commonids.SubscriptionId, predicate ClusterOperationPredicate) (result ListBySubscriptionCompleteResult, err error)
ListBySubscriptionCompleteMatchingPredicate retrieves all the results and then applies the predicate
func (ClustersClient) ListStreamingJobs ¶
func (c ClustersClient) ListStreamingJobs(ctx context.Context, id ClusterId) (result ListStreamingJobsOperationResponse, err error)
ListStreamingJobs ...
func (ClustersClient) ListStreamingJobsComplete ¶
func (c ClustersClient) ListStreamingJobsComplete(ctx context.Context, id ClusterId) (ListStreamingJobsCompleteResult, error)
ListStreamingJobsComplete retrieves all the results into a single object
func (ClustersClient) ListStreamingJobsCompleteMatchingPredicate ¶
func (c ClustersClient) ListStreamingJobsCompleteMatchingPredicate(ctx context.Context, id ClusterId, predicate ClusterJobOperationPredicate) (result ListStreamingJobsCompleteResult, err error)
ListStreamingJobsCompleteMatchingPredicate retrieves all the results and then applies the predicate
func (ClustersClient) Update ¶
func (c ClustersClient) Update(ctx context.Context, id ClusterId, input Cluster, options UpdateOperationOptions) (result UpdateOperationResponse, err error)
Update ...
func (ClustersClient) UpdateThenPoll ¶
func (c ClustersClient) UpdateThenPoll(ctx context.Context, id ClusterId, input Cluster, options UpdateOperationOptions) error
UpdateThenPoll performs Update then polls until it's completed
type CreateOrUpdateOperationOptions ¶
func DefaultCreateOrUpdateOperationOptions ¶
func DefaultCreateOrUpdateOperationOptions() CreateOrUpdateOperationOptions
func (CreateOrUpdateOperationOptions) ToHeaders ¶ added in v0.20240208.1095436
func (o CreateOrUpdateOperationOptions) ToHeaders() *client.Headers
func (CreateOrUpdateOperationOptions) ToOData ¶ added in v0.20240208.1095436
func (o CreateOrUpdateOperationOptions) ToOData() *odata.Query
func (CreateOrUpdateOperationOptions) ToQuery ¶ added in v0.20240208.1095436
func (o CreateOrUpdateOperationOptions) ToQuery() *client.QueryParams
type DeleteOperationResponse ¶
type GetOperationResponse ¶
type JobState ¶
type JobState string
const ( JobStateCreated JobState = "Created" JobStateDegraded JobState = "Degraded" JobStateDeleting JobState = "Deleting" JobStateFailed JobState = "Failed" JobStateRestarting JobState = "Restarting" JobStateRunning JobState = "Running" JobStateScaling JobState = "Scaling" JobStateStarting JobState = "Starting" JobStateStopped JobState = "Stopped" JobStateStopping JobState = "Stopping" )
func (*JobState) UnmarshalJSON ¶ added in v0.20240208.1095436
type ListStreamingJobsCompleteResult ¶
type ListStreamingJobsCompleteResult struct { LatestHttpResponse *http.Response Items []ClusterJob }
type ListStreamingJobsOperationResponse ¶
type ListStreamingJobsOperationResponse struct { HttpResponse *http.Response OData *odata.OData Model *[]ClusterJob }
type UpdateOperationOptions ¶
type UpdateOperationOptions struct {
IfMatch *string
}
func DefaultUpdateOperationOptions ¶
func DefaultUpdateOperationOptions() UpdateOperationOptions
func (UpdateOperationOptions) ToHeaders ¶ added in v0.20240208.1095436
func (o UpdateOperationOptions) ToHeaders() *client.Headers
func (UpdateOperationOptions) ToOData ¶ added in v0.20240208.1095436
func (o UpdateOperationOptions) ToOData() *odata.Query
func (UpdateOperationOptions) ToQuery ¶ added in v0.20240208.1095436
func (o UpdateOperationOptions) ToQuery() *client.QueryParams
Source Files ¶
- client.go
- constants.go
- id_cluster.go
- method_createorupdate.go
- method_delete.go
- method_get.go
- method_listbyresourcegroup.go
- method_listbysubscription.go
- method_liststreamingjobs.go
- method_update.go
- model_cluster.go
- model_clusterjob.go
- model_clusterproperties.go
- model_clustersku.go
- predicates.go
- version.go