Documentation ¶
Index ¶
- func PossibleValuesForArmServicePackageActivationMode() []string
- func PossibleValuesForMoveCost() []string
- func PossibleValuesForPartitionScheme() []string
- func PossibleValuesForServiceCorrelationScheme() []string
- func PossibleValuesForServiceKind() []string
- func PossibleValuesForServiceLoadMetricWeight() []string
- func PossibleValuesForServicePlacementPolicyType() []string
- func ValidateApplicationID(input interface{}, key string) (warnings []string, errors []error)
- func ValidateServiceID(input interface{}, key string) (warnings []string, errors []error)
- type ApplicationId
- type ArmServicePackageActivationMode
- type CreateOrUpdateOperationResponse
- type DeleteOperationResponse
- type GetOperationResponse
- type ListOperationResponse
- type MoveCost
- type NamedPartitionSchemeDescription
- type PartitionScheme
- type PartitionSchemeDescription
- type ServiceClient
- func (c ServiceClient) CreateOrUpdate(ctx context.Context, id ServiceId, input ServiceResource) (result CreateOrUpdateOperationResponse, err error)
- func (c ServiceClient) CreateOrUpdateThenPoll(ctx context.Context, id ServiceId, input ServiceResource) error
- func (c ServiceClient) Delete(ctx context.Context, id ServiceId) (result DeleteOperationResponse, err error)
- func (c ServiceClient) DeleteThenPoll(ctx context.Context, id ServiceId) error
- func (c ServiceClient) Get(ctx context.Context, id ServiceId) (result GetOperationResponse, err error)
- func (c ServiceClient) List(ctx context.Context, id ApplicationId) (result ListOperationResponse, err error)
- func (c ServiceClient) Update(ctx context.Context, id ServiceId, input ServiceResourceUpdate) (result UpdateOperationResponse, err error)
- func (c ServiceClient) UpdateThenPoll(ctx context.Context, id ServiceId, input ServiceResourceUpdate) error
- type ServiceCorrelationDescription
- type ServiceCorrelationScheme
- type ServiceId
- type ServiceKind
- type ServiceLoadMetricDescription
- type ServiceLoadMetricWeight
- type ServicePlacementPolicyDescription
- type ServicePlacementPolicyType
- type ServiceResource
- type ServiceResourceList
- type ServiceResourceProperties
- type ServiceResourceUpdate
- type ServiceResourceUpdateProperties
- type SingletonPartitionSchemeDescription
- type StatefulServiceProperties
- type StatefulServiceUpdateProperties
- type StatelessServiceProperties
- type StatelessServiceUpdateProperties
- type SystemData
- type UniformInt64RangePartitionSchemeDescription
- type UpdateOperationResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PossibleValuesForArmServicePackageActivationMode ¶
func PossibleValuesForArmServicePackageActivationMode() []string
func PossibleValuesForMoveCost ¶
func PossibleValuesForMoveCost() []string
func PossibleValuesForPartitionScheme ¶
func PossibleValuesForPartitionScheme() []string
func PossibleValuesForServiceCorrelationScheme ¶
func PossibleValuesForServiceCorrelationScheme() []string
func PossibleValuesForServiceKind ¶
func PossibleValuesForServiceKind() []string
func PossibleValuesForServiceLoadMetricWeight ¶
func PossibleValuesForServiceLoadMetricWeight() []string
func PossibleValuesForServicePlacementPolicyType ¶
func PossibleValuesForServicePlacementPolicyType() []string
func ValidateApplicationID ¶
ValidateApplicationID checks that 'input' can be parsed as a Application ID
func ValidateServiceID ¶
ValidateServiceID checks that 'input' can be parsed as a Service ID
Types ¶
type ApplicationId ¶
type ApplicationId struct { SubscriptionId string ResourceGroupName string ClusterName string ApplicationName string }
ApplicationId is a struct representing the Resource ID for a Application
func NewApplicationID ¶
func NewApplicationID(subscriptionId string, resourceGroupName string, clusterName string, applicationName string) ApplicationId
NewApplicationID returns a new ApplicationId struct
func ParseApplicationID ¶
func ParseApplicationID(input string) (*ApplicationId, error)
ParseApplicationID parses 'input' into a ApplicationId
func ParseApplicationIDInsensitively ¶
func ParseApplicationIDInsensitively(input string) (*ApplicationId, error)
ParseApplicationIDInsensitively parses 'input' case-insensitively into a ApplicationId note: this method should only be used for API response data and not user input
func (ApplicationId) ID ¶
func (id ApplicationId) ID() string
ID returns the formatted Application ID
func (ApplicationId) Segments ¶
func (id ApplicationId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Application ID
func (ApplicationId) String ¶
func (id ApplicationId) String() string
String returns a human-readable description of this Application ID
type ArmServicePackageActivationMode ¶
type ArmServicePackageActivationMode string
const ( ArmServicePackageActivationModeExclusiveProcess ArmServicePackageActivationMode = "ExclusiveProcess" )
type CreateOrUpdateOperationResponse ¶
type CreateOrUpdateOperationResponse struct { Poller polling.LongRunningPoller HttpResponse *http.Response }
type DeleteOperationResponse ¶
type DeleteOperationResponse struct { Poller polling.LongRunningPoller HttpResponse *http.Response }
type GetOperationResponse ¶
type GetOperationResponse struct { HttpResponse *http.Response Model *ServiceResource }
type ListOperationResponse ¶
type ListOperationResponse struct { HttpResponse *http.Response Model *ServiceResourceList }
type NamedPartitionSchemeDescription ¶
type NamedPartitionSchemeDescription struct { Count int64 `json:"count"` Names []string `json:"names"` }
func (NamedPartitionSchemeDescription) MarshalJSON ¶
func (s NamedPartitionSchemeDescription) MarshalJSON() ([]byte, error)
type PartitionScheme ¶
type PartitionScheme string
const ( PartitionSchemeInvalid PartitionScheme = "Invalid" PartitionSchemeNamed PartitionScheme = "Named" PartitionSchemeSingleton PartitionScheme = "Singleton" PartitionSchemeUniformIntSixFourRange PartitionScheme = "UniformInt64Range" )
type PartitionSchemeDescription ¶
type PartitionSchemeDescription interface { }
type ServiceClient ¶
func NewServiceClientWithBaseURI ¶
func NewServiceClientWithBaseURI(endpoint string) ServiceClient
func (ServiceClient) CreateOrUpdate ¶
func (c ServiceClient) CreateOrUpdate(ctx context.Context, id ServiceId, input ServiceResource) (result CreateOrUpdateOperationResponse, err error)
CreateOrUpdate ...
func (ServiceClient) CreateOrUpdateThenPoll ¶
func (c ServiceClient) CreateOrUpdateThenPoll(ctx context.Context, id ServiceId, input ServiceResource) error
CreateOrUpdateThenPoll performs CreateOrUpdate then polls until it's completed
func (ServiceClient) Delete ¶
func (c ServiceClient) Delete(ctx context.Context, id ServiceId) (result DeleteOperationResponse, err error)
Delete ...
func (ServiceClient) DeleteThenPoll ¶
func (c ServiceClient) DeleteThenPoll(ctx context.Context, id ServiceId) error
DeleteThenPoll performs Delete then polls until it's completed
func (ServiceClient) Get ¶
func (c ServiceClient) Get(ctx context.Context, id ServiceId) (result GetOperationResponse, err error)
Get ...
func (ServiceClient) List ¶
func (c ServiceClient) List(ctx context.Context, id ApplicationId) (result ListOperationResponse, err error)
List ...
func (ServiceClient) Update ¶
func (c ServiceClient) Update(ctx context.Context, id ServiceId, input ServiceResourceUpdate) (result UpdateOperationResponse, err error)
Update ...
func (ServiceClient) UpdateThenPoll ¶
func (c ServiceClient) UpdateThenPoll(ctx context.Context, id ServiceId, input ServiceResourceUpdate) error
UpdateThenPoll performs Update then polls until it's completed
type ServiceCorrelationDescription ¶
type ServiceCorrelationDescription struct { Scheme ServiceCorrelationScheme `json:"scheme"` ServiceName string `json:"serviceName"` }
type ServiceCorrelationScheme ¶
type ServiceCorrelationScheme string
const ( ServiceCorrelationSchemeAffinity ServiceCorrelationScheme = "Affinity" ServiceCorrelationSchemeAlignedAffinity ServiceCorrelationScheme = "AlignedAffinity" ServiceCorrelationSchemeInvalid ServiceCorrelationScheme = "Invalid" ServiceCorrelationSchemeNonAlignedAffinity ServiceCorrelationScheme = "NonAlignedAffinity" )
type ServiceId ¶
type ServiceId struct { SubscriptionId string ResourceGroupName string ClusterName string ApplicationName string ServiceName string }
ServiceId is a struct representing the Resource ID for a Service
func NewServiceID ¶
func NewServiceID(subscriptionId string, resourceGroupName string, clusterName string, applicationName string, serviceName string) ServiceId
NewServiceID returns a new ServiceId struct
func ParseServiceID ¶
ParseServiceID parses 'input' into a ServiceId
func ParseServiceIDInsensitively ¶
ParseServiceIDInsensitively parses 'input' case-insensitively into a ServiceId note: this method should only be used for API response data and not user input
func (ServiceId) Segments ¶
func (id ServiceId) Segments() []resourceids.Segment
Segments returns a slice of Resource ID Segments which comprise this Service ID
type ServiceKind ¶
type ServiceKind string
const ( ServiceKindInvalid ServiceKind = "Invalid" ServiceKindStateful ServiceKind = "Stateful" ServiceKindStateless ServiceKind = "Stateless" )
type ServiceLoadMetricDescription ¶
type ServiceLoadMetricDescription struct { DefaultLoad *int64 `json:"defaultLoad,omitempty"` Name string `json:"name"` PrimaryDefaultLoad *int64 `json:"primaryDefaultLoad,omitempty"` SecondaryDefaultLoad *int64 `json:"secondaryDefaultLoad,omitempty"` Weight *ServiceLoadMetricWeight `json:"weight,omitempty"` }
type ServiceLoadMetricWeight ¶
type ServiceLoadMetricWeight string
const ( ServiceLoadMetricWeightHigh ServiceLoadMetricWeight = "High" ServiceLoadMetricWeightLow ServiceLoadMetricWeight = "Low" ServiceLoadMetricWeightMedium ServiceLoadMetricWeight = "Medium" ServiceLoadMetricWeightZero ServiceLoadMetricWeight = "Zero" )
type ServicePlacementPolicyDescription ¶
type ServicePlacementPolicyDescription struct {
Type ServicePlacementPolicyType `json:"type"`
}
type ServicePlacementPolicyType ¶
type ServicePlacementPolicyType string
const ( ServicePlacementPolicyTypeInvalid ServicePlacementPolicyType = "Invalid" ServicePlacementPolicyTypeInvalidDomain ServicePlacementPolicyType = "InvalidDomain" ServicePlacementPolicyTypeNonPartiallyPlaceService ServicePlacementPolicyType = "NonPartiallyPlaceService" ServicePlacementPolicyTypePreferredPrimaryDomain ServicePlacementPolicyType = "PreferredPrimaryDomain" ServicePlacementPolicyTypeRequiredDomain ServicePlacementPolicyType = "RequiredDomain" ServicePlacementPolicyTypeRequiredDomainDistribution ServicePlacementPolicyType = "RequiredDomainDistribution" )
type ServiceResource ¶
type ServiceResource struct { Etag *string `json:"etag,omitempty"` Id *string `json:"id,omitempty"` Location *string `json:"location,omitempty"` Name *string `json:"name,omitempty"` Properties *ServiceResourceProperties `json:"properties,omitempty"` SystemData *SystemData `json:"systemData,omitempty"` Tags *map[string]string `json:"tags,omitempty"` Type *string `json:"type,omitempty"` }
func (*ServiceResource) UnmarshalJSON ¶
func (s *ServiceResource) UnmarshalJSON(bytes []byte) error
type ServiceResourceList ¶
type ServiceResourceList struct { NextLink *string `json:"nextLink,omitempty"` Value *[]ServiceResource `json:"value,omitempty"` }
type ServiceResourceProperties ¶
type ServiceResourceProperties interface { }
type ServiceResourceUpdate ¶
type ServiceResourceUpdate struct { Etag *string `json:"etag,omitempty"` Id *string `json:"id,omitempty"` Location *string `json:"location,omitempty"` Name *string `json:"name,omitempty"` Properties *ServiceResourceUpdateProperties `json:"properties,omitempty"` SystemData *SystemData `json:"systemData,omitempty"` Tags *map[string]string `json:"tags,omitempty"` Type *string `json:"type,omitempty"` }
func (*ServiceResourceUpdate) UnmarshalJSON ¶
func (s *ServiceResourceUpdate) UnmarshalJSON(bytes []byte) error
type ServiceResourceUpdateProperties ¶
type ServiceResourceUpdateProperties interface { }
type SingletonPartitionSchemeDescription ¶
type SingletonPartitionSchemeDescription struct { }
func (SingletonPartitionSchemeDescription) MarshalJSON ¶
func (s SingletonPartitionSchemeDescription) MarshalJSON() ([]byte, error)
type StatefulServiceProperties ¶
type StatefulServiceProperties struct { HasPersistedState *bool `json:"hasPersistedState,omitempty"` MinReplicaSetSize *int64 `json:"minReplicaSetSize,omitempty"` QuorumLossWaitDuration *string `json:"quorumLossWaitDuration,omitempty"` ReplicaRestartWaitDuration *string `json:"replicaRestartWaitDuration,omitempty"` StandByReplicaKeepDuration *string `json:"standByReplicaKeepDuration,omitempty"` TargetReplicaSetSize *int64 `json:"targetReplicaSetSize,omitempty"` // Fields inherited from ServiceResourceProperties CorrelationScheme *[]ServiceCorrelationDescription `json:"correlationScheme,omitempty"` DefaultMoveCost *MoveCost `json:"defaultMoveCost,omitempty"` PartitionDescription *PartitionSchemeDescription `json:"partitionDescription,omitempty"` PlacementConstraints *string `json:"placementConstraints,omitempty"` ProvisioningState *string `json:"provisioningState,omitempty"` ServiceDnsName *string `json:"serviceDnsName,omitempty"` ServiceLoadMetrics *[]ServiceLoadMetricDescription `json:"serviceLoadMetrics,omitempty"` ServicePackageActivationMode *ArmServicePackageActivationMode `json:"servicePackageActivationMode,omitempty"` ServicePlacementPolicies *[]ServicePlacementPolicyDescription `json:"servicePlacementPolicies,omitempty"` ServiceTypeName *string `json:"serviceTypeName,omitempty"` }
func (StatefulServiceProperties) MarshalJSON ¶
func (s StatefulServiceProperties) MarshalJSON() ([]byte, error)
func (*StatefulServiceProperties) UnmarshalJSON ¶
func (s *StatefulServiceProperties) UnmarshalJSON(bytes []byte) error
type StatefulServiceUpdateProperties ¶
type StatefulServiceUpdateProperties struct { MinReplicaSetSize *int64 `json:"minReplicaSetSize,omitempty"` QuorumLossWaitDuration *string `json:"quorumLossWaitDuration,omitempty"` ReplicaRestartWaitDuration *string `json:"replicaRestartWaitDuration,omitempty"` StandByReplicaKeepDuration *string `json:"standByReplicaKeepDuration,omitempty"` TargetReplicaSetSize *int64 `json:"targetReplicaSetSize,omitempty"` // Fields inherited from ServiceResourceUpdateProperties CorrelationScheme *[]ServiceCorrelationDescription `json:"correlationScheme,omitempty"` DefaultMoveCost *MoveCost `json:"defaultMoveCost,omitempty"` PlacementConstraints *string `json:"placementConstraints,omitempty"` ServiceLoadMetrics *[]ServiceLoadMetricDescription `json:"serviceLoadMetrics,omitempty"` ServicePlacementPolicies *[]ServicePlacementPolicyDescription `json:"servicePlacementPolicies,omitempty"` }
func (StatefulServiceUpdateProperties) MarshalJSON ¶
func (s StatefulServiceUpdateProperties) MarshalJSON() ([]byte, error)
type StatelessServiceProperties ¶
type StatelessServiceProperties struct { InstanceCloseDelayDuration *string `json:"instanceCloseDelayDuration,omitempty"` InstanceCount *int64 `json:"instanceCount,omitempty"` // Fields inherited from ServiceResourceProperties CorrelationScheme *[]ServiceCorrelationDescription `json:"correlationScheme,omitempty"` DefaultMoveCost *MoveCost `json:"defaultMoveCost,omitempty"` PartitionDescription *PartitionSchemeDescription `json:"partitionDescription,omitempty"` PlacementConstraints *string `json:"placementConstraints,omitempty"` ProvisioningState *string `json:"provisioningState,omitempty"` ServiceDnsName *string `json:"serviceDnsName,omitempty"` ServiceLoadMetrics *[]ServiceLoadMetricDescription `json:"serviceLoadMetrics,omitempty"` ServicePackageActivationMode *ArmServicePackageActivationMode `json:"servicePackageActivationMode,omitempty"` ServicePlacementPolicies *[]ServicePlacementPolicyDescription `json:"servicePlacementPolicies,omitempty"` ServiceTypeName *string `json:"serviceTypeName,omitempty"` }
func (StatelessServiceProperties) MarshalJSON ¶
func (s StatelessServiceProperties) MarshalJSON() ([]byte, error)
func (*StatelessServiceProperties) UnmarshalJSON ¶
func (s *StatelessServiceProperties) UnmarshalJSON(bytes []byte) error
type StatelessServiceUpdateProperties ¶
type StatelessServiceUpdateProperties struct { InstanceCloseDelayDuration *string `json:"instanceCloseDelayDuration,omitempty"` InstanceCount *int64 `json:"instanceCount,omitempty"` // Fields inherited from ServiceResourceUpdateProperties CorrelationScheme *[]ServiceCorrelationDescription `json:"correlationScheme,omitempty"` DefaultMoveCost *MoveCost `json:"defaultMoveCost,omitempty"` PlacementConstraints *string `json:"placementConstraints,omitempty"` ServiceLoadMetrics *[]ServiceLoadMetricDescription `json:"serviceLoadMetrics,omitempty"` ServicePlacementPolicies *[]ServicePlacementPolicyDescription `json:"servicePlacementPolicies,omitempty"` }
func (StatelessServiceUpdateProperties) MarshalJSON ¶
func (s StatelessServiceUpdateProperties) MarshalJSON() ([]byte, error)
type SystemData ¶
type SystemData struct { CreatedAt *string `json:"createdAt,omitempty"` CreatedBy *string `json:"createdBy,omitempty"` CreatedByType *string `json:"createdByType,omitempty"` LastModifiedAt *string `json:"lastModifiedAt,omitempty"` LastModifiedBy *string `json:"lastModifiedBy,omitempty"` LastModifiedByType *string `json:"lastModifiedByType,omitempty"` }
func (*SystemData) GetCreatedAtAsTime ¶
func (o *SystemData) GetCreatedAtAsTime() (*time.Time, error)
func (*SystemData) GetLastModifiedAtAsTime ¶
func (o *SystemData) GetLastModifiedAtAsTime() (*time.Time, error)
func (*SystemData) SetCreatedAtAsTime ¶
func (o *SystemData) SetCreatedAtAsTime(input time.Time)
func (*SystemData) SetLastModifiedAtAsTime ¶
func (o *SystemData) SetLastModifiedAtAsTime(input time.Time)
type UniformInt64RangePartitionSchemeDescription ¶
type UniformInt64RangePartitionSchemeDescription struct { Count int64 `json:"count"` HighKey string `json:"highKey"` LowKey string `json:"lowKey"` }
func (UniformInt64RangePartitionSchemeDescription) MarshalJSON ¶
func (s UniformInt64RangePartitionSchemeDescription) MarshalJSON() ([]byte, error)
type UpdateOperationResponse ¶
type UpdateOperationResponse struct { Poller polling.LongRunningPoller HttpResponse *http.Response }
Source Files ¶
- client.go
- constants.go
- id_application.go
- id_service.go
- method_createorupdate_autorest.go
- method_delete_autorest.go
- method_get_autorest.go
- method_list_autorest.go
- method_update_autorest.go
- model_namedpartitionschemedescription.go
- model_partitionschemedescription.go
- model_servicecorrelationdescription.go
- model_serviceloadmetricdescription.go
- model_serviceplacementpolicydescription.go
- model_serviceresource.go
- model_serviceresourcelist.go
- model_serviceresourceproperties.go
- model_serviceresourceupdate.go
- model_serviceresourceupdateproperties.go
- model_singletonpartitionschemedescription.go
- model_statefulserviceproperties.go
- model_statefulserviceupdateproperties.go
- model_statelessserviceproperties.go
- model_statelessserviceupdateproperties.go
- model_systemdata.go
- model_uniformint64rangepartitionschemedescription.go
- version.go