Versions in this module Expand all Collapse all v0 v0.20241126.2320 Nov 26, 2024 v0.20241126.1723 Nov 26, 2024 Changes in this version + func PossibleValuesForMoveCost() []string + func PossibleValuesForPartitionScheme() []string + func PossibleValuesForServiceCorrelationScheme() []string + func PossibleValuesForServiceKind() []string + func PossibleValuesForServiceLoadMetricWeight() []string + func PossibleValuesForServicePackageActivationMode() []string + func PossibleValuesForServicePlacementPolicyType() []string + func PossibleValuesForServiceScalingMechanismKind() []string + func PossibleValuesForServiceScalingTriggerKind() []string + func ValidateServiceID(input interface{}, key string) (warnings []string, errors []error) + type AddRemoveIncrementalNamedPartitionScalingMechanism struct + Kind ServiceScalingMechanismKind + MaxPartitionCount int64 + MinPartitionCount int64 + ScaleIncrement int64 + func (s AddRemoveIncrementalNamedPartitionScalingMechanism) MarshalJSON() ([]byte, error) + func (s AddRemoveIncrementalNamedPartitionScalingMechanism) ScalingMechanism() BaseScalingMechanismImpl + type AveragePartitionLoadScalingTrigger struct + Kind ServiceScalingTriggerKind + LowerLoadThreshold float64 + MetricName string + ScaleInterval string + UpperLoadThreshold float64 + func (s AveragePartitionLoadScalingTrigger) MarshalJSON() ([]byte, error) + func (s AveragePartitionLoadScalingTrigger) ScalingTrigger() BaseScalingTriggerImpl + type AverageServiceLoadScalingTrigger struct + Kind ServiceScalingTriggerKind + LowerLoadThreshold float64 + MetricName string + ScaleInterval string + UpperLoadThreshold float64 + UseOnlyPrimaryLoad bool + func (s AverageServiceLoadScalingTrigger) MarshalJSON() ([]byte, error) + func (s AverageServiceLoadScalingTrigger) ScalingTrigger() BaseScalingTriggerImpl + type BasePartitionImpl struct + PartitionScheme PartitionScheme + func (s BasePartitionImpl) Partition() BasePartitionImpl + type BaseScalingMechanismImpl struct + Kind ServiceScalingMechanismKind + func (s BaseScalingMechanismImpl) ScalingMechanism() BaseScalingMechanismImpl + type BaseScalingTriggerImpl struct + Kind ServiceScalingTriggerKind + func (s BaseScalingTriggerImpl) ScalingTrigger() BaseScalingTriggerImpl + type BaseServicePlacementPolicyImpl struct + Type ServicePlacementPolicyType + func (s BaseServicePlacementPolicyImpl) ServicePlacementPolicy() BaseServicePlacementPolicyImpl + type BaseServiceResourcePropertiesImpl struct + CorrelationScheme *[]ServiceCorrelation + DefaultMoveCost *MoveCost + PartitionDescription Partition + PlacementConstraints *string + ProvisioningState *string + ScalingPolicies *[]ScalingPolicy + ServiceDnsName *string + ServiceKind ServiceKind + ServiceLoadMetrics *[]ServiceLoadMetric + ServicePackageActivationMode *ServicePackageActivationMode + ServicePlacementPolicies *[]ServicePlacementPolicy + ServiceTypeName string + func (s *BaseServiceResourcePropertiesImpl) UnmarshalJSON(bytes []byte) error + func (s BaseServiceResourcePropertiesImpl) ServiceResourceProperties() BaseServiceResourcePropertiesImpl + type MoveCost string + const MoveCostHigh + const MoveCostLow + const MoveCostMedium + const MoveCostZero + func (s *MoveCost) UnmarshalJSON(bytes []byte) error + type NamedPartitionScheme struct + Names []string + PartitionScheme PartitionScheme + func (s NamedPartitionScheme) MarshalJSON() ([]byte, error) + func (s NamedPartitionScheme) Partition() BasePartitionImpl + type Partition interface + Partition func() BasePartitionImpl + func UnmarshalPartitionImplementation(input []byte) (Partition, error) + type PartitionInstanceCountScaleMechanism struct + Kind ServiceScalingMechanismKind + MaxInstanceCount int64 + MinInstanceCount int64 + ScaleIncrement int64 + func (s PartitionInstanceCountScaleMechanism) MarshalJSON() ([]byte, error) + func (s PartitionInstanceCountScaleMechanism) ScalingMechanism() BaseScalingMechanismImpl + type PartitionScheme string + const PartitionSchemeNamed + const PartitionSchemeSingleton + const PartitionSchemeUniformIntSixFourRange + func (s *PartitionScheme) UnmarshalJSON(bytes []byte) error + type RawPartitionImpl struct + Type string + Values map[string]interface{} + func (s RawPartitionImpl) Partition() BasePartitionImpl + type RawScalingMechanismImpl struct + Type string + Values map[string]interface{} + func (s RawScalingMechanismImpl) ScalingMechanism() BaseScalingMechanismImpl + type RawScalingTriggerImpl struct + Type string + Values map[string]interface{} + func (s RawScalingTriggerImpl) ScalingTrigger() BaseScalingTriggerImpl + type RawServicePlacementPolicyImpl struct + Type string + Values map[string]interface{} + func (s RawServicePlacementPolicyImpl) ServicePlacementPolicy() BaseServicePlacementPolicyImpl + type RawServiceResourcePropertiesImpl struct + Type string + Values map[string]interface{} + func (s RawServiceResourcePropertiesImpl) ServiceResourceProperties() BaseServiceResourcePropertiesImpl + type ScalingMechanism interface + ScalingMechanism func() BaseScalingMechanismImpl + func UnmarshalScalingMechanismImplementation(input []byte) (ScalingMechanism, error) + type ScalingPolicy struct + ScalingMechanism ScalingMechanism + ScalingTrigger ScalingTrigger + func (s *ScalingPolicy) UnmarshalJSON(bytes []byte) error + type ScalingTrigger interface + ScalingTrigger func() BaseScalingTriggerImpl + func UnmarshalScalingTriggerImplementation(input []byte) (ScalingTrigger, error) + type ServiceCorrelation struct + Scheme ServiceCorrelationScheme + ServiceName string + type ServiceCorrelationScheme string + const ServiceCorrelationSchemeAlignedAffinity + const ServiceCorrelationSchemeNonAlignedAffinity + func (s *ServiceCorrelationScheme) UnmarshalJSON(bytes []byte) error + type ServiceId struct + ApplicationName string + ManagedClusterName string + ResourceGroupName string + ServiceName string + SubscriptionId string + func NewServiceID(subscriptionId string, resourceGroupName string, managedClusterName string, ...) ServiceId + func ParseServiceID(input string) (*ServiceId, error) + func ParseServiceIDInsensitively(input string) (*ServiceId, error) + func (id *ServiceId) FromParseResult(input resourceids.ParseResult) error + func (id ServiceId) ID() string + func (id ServiceId) Segments() []resourceids.Segment + func (id ServiceId) String() string + type ServiceKind string + const ServiceKindStateful + const ServiceKindStateless + func (s *ServiceKind) UnmarshalJSON(bytes []byte) error + type ServiceLoadMetric struct + DefaultLoad *int64 + Name string + PrimaryDefaultLoad *int64 + SecondaryDefaultLoad *int64 + Weight *ServiceLoadMetricWeight + type ServiceLoadMetricWeight string + const ServiceLoadMetricWeightHigh + const ServiceLoadMetricWeightLow + const ServiceLoadMetricWeightMedium + const ServiceLoadMetricWeightZero + func (s *ServiceLoadMetricWeight) UnmarshalJSON(bytes []byte) error + type ServicePackageActivationMode string + const ServicePackageActivationModeExclusiveProcess + const ServicePackageActivationModeSharedProcess + func (s *ServicePackageActivationMode) UnmarshalJSON(bytes []byte) error + type ServicePlacementInvalidDomainPolicy struct + DomainName string + Type ServicePlacementPolicyType + func (s ServicePlacementInvalidDomainPolicy) MarshalJSON() ([]byte, error) + func (s ServicePlacementInvalidDomainPolicy) ServicePlacementPolicy() BaseServicePlacementPolicyImpl + type ServicePlacementNonPartiallyPlaceServicePolicy struct + Type ServicePlacementPolicyType + func (s ServicePlacementNonPartiallyPlaceServicePolicy) MarshalJSON() ([]byte, error) + func (s ServicePlacementNonPartiallyPlaceServicePolicy) ServicePlacementPolicy() BaseServicePlacementPolicyImpl + type ServicePlacementPolicy interface + ServicePlacementPolicy func() BaseServicePlacementPolicyImpl + func UnmarshalServicePlacementPolicyImplementation(input []byte) (ServicePlacementPolicy, error) + type ServicePlacementPolicyType string + const ServicePlacementPolicyTypeInvalidDomain + const ServicePlacementPolicyTypeNonPartiallyPlaceService + const ServicePlacementPolicyTypePreferredPrimaryDomain + const ServicePlacementPolicyTypeRequiredDomain + const ServicePlacementPolicyTypeRequiredDomainDistribution + func (s *ServicePlacementPolicyType) UnmarshalJSON(bytes []byte) error + type ServicePlacementPreferPrimaryDomainPolicy struct + DomainName string + Type ServicePlacementPolicyType + func (s ServicePlacementPreferPrimaryDomainPolicy) MarshalJSON() ([]byte, error) + func (s ServicePlacementPreferPrimaryDomainPolicy) ServicePlacementPolicy() BaseServicePlacementPolicyImpl + type ServicePlacementRequireDomainDistributionPolicy struct + DomainName string + Type ServicePlacementPolicyType + func (s ServicePlacementRequireDomainDistributionPolicy) MarshalJSON() ([]byte, error) + func (s ServicePlacementRequireDomainDistributionPolicy) ServicePlacementPolicy() BaseServicePlacementPolicyImpl + type ServicePlacementRequiredDomainPolicy struct + DomainName string + Type ServicePlacementPolicyType + func (s ServicePlacementRequiredDomainPolicy) MarshalJSON() ([]byte, error) + func (s ServicePlacementRequiredDomainPolicy) ServicePlacementPolicy() BaseServicePlacementPolicyImpl + type ServiceResource struct + Id *string + Location *string + Name *string + Properties ServiceResourceProperties + SystemData *SystemData + Tags *map[string]string + Type *string + func (s *ServiceResource) UnmarshalJSON(bytes []byte) error + type ServiceResourceProperties interface + ServiceResourceProperties func() BaseServiceResourcePropertiesImpl + func UnmarshalServiceResourcePropertiesImplementation(input []byte) (ServiceResourceProperties, error) + type ServiceScalingMechanismKind string + const ServiceScalingMechanismKindAddRemoveIncrementalNamedPartition + const ServiceScalingMechanismKindScalePartitionInstanceCount + func (s *ServiceScalingMechanismKind) UnmarshalJSON(bytes []byte) error + type ServiceScalingTriggerKind string + const ServiceScalingTriggerKindAveragePartitionLoadTrigger + const ServiceScalingTriggerKindAverageServiceLoadTrigger + func (s *ServiceScalingTriggerKind) UnmarshalJSON(bytes []byte) error + type ServiceUpdateParameters struct + Tags *map[string]string + type ServicesClient struct + Client *resourcemanager.Client + func NewServicesClientWithBaseURI(sdkApi sdkEnv.Api) (*ServicesClient, error) + func (c ServicesClient) Update(ctx context.Context, id ServiceId, input ServiceUpdateParameters) (result UpdateOperationResponse, err error) + type SingletonPartitionScheme struct + PartitionScheme PartitionScheme + func (s SingletonPartitionScheme) MarshalJSON() ([]byte, error) + func (s SingletonPartitionScheme) Partition() BasePartitionImpl + type StatefulServiceProperties struct + CorrelationScheme *[]ServiceCorrelation + DefaultMoveCost *MoveCost + HasPersistedState *bool + MinReplicaSetSize *int64 + PartitionDescription Partition + PlacementConstraints *string + ProvisioningState *string + QuorumLossWaitDuration *string + ReplicaRestartWaitDuration *string + ScalingPolicies *[]ScalingPolicy + ServiceDnsName *string + ServiceKind ServiceKind + ServiceLoadMetrics *[]ServiceLoadMetric + ServicePackageActivationMode *ServicePackageActivationMode + ServicePlacementPolicies *[]ServicePlacementPolicy + ServicePlacementTimeLimit *string + ServiceTypeName string + StandByReplicaKeepDuration *string + TargetReplicaSetSize *int64 + func (s *StatefulServiceProperties) UnmarshalJSON(bytes []byte) error + func (s StatefulServiceProperties) MarshalJSON() ([]byte, error) + func (s StatefulServiceProperties) ServiceResourceProperties() BaseServiceResourcePropertiesImpl + type StatelessServiceProperties struct + CorrelationScheme *[]ServiceCorrelation + DefaultMoveCost *MoveCost + InstanceCount int64 + MinInstanceCount *int64 + MinInstancePercentage *int64 + PartitionDescription Partition + PlacementConstraints *string + ProvisioningState *string + ScalingPolicies *[]ScalingPolicy + ServiceDnsName *string + ServiceKind ServiceKind + ServiceLoadMetrics *[]ServiceLoadMetric + ServicePackageActivationMode *ServicePackageActivationMode + ServicePlacementPolicies *[]ServicePlacementPolicy + ServiceTypeName string + func (s *StatelessServiceProperties) UnmarshalJSON(bytes []byte) error + func (s StatelessServiceProperties) MarshalJSON() ([]byte, error) + func (s StatelessServiceProperties) ServiceResourceProperties() BaseServiceResourcePropertiesImpl + type SystemData struct + CreatedAt *string + CreatedBy *string + CreatedByType *string + LastModifiedAt *string + LastModifiedBy *string + LastModifiedByType *string + func (o *SystemData) GetCreatedAtAsTime() (*time.Time, error) + func (o *SystemData) GetLastModifiedAtAsTime() (*time.Time, error) + func (o *SystemData) SetCreatedAtAsTime(input time.Time) + func (o *SystemData) SetLastModifiedAtAsTime(input time.Time) + type UniformInt64RangePartitionScheme struct + Count int64 + HighKey int64 + LowKey int64 + PartitionScheme PartitionScheme + func (s UniformInt64RangePartitionScheme) MarshalJSON() ([]byte, error) + func (s UniformInt64RangePartitionScheme) Partition() BasePartitionImpl + type UpdateOperationResponse struct + HttpResponse *http.Response + Model *ServiceResource + OData *odata.OData