Documentation
¶
Overview ¶
Deprecated: Please note, this package has been deprecated. A replacement package is available github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/servicefabric/armservicefabric(https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/servicefabric/armservicefabric). We strongly encourage you to upgrade to continue receiving updates. See [Migration Guide](https://aka.ms/azsdk/golang/t2/migration) for guidance on upgrading. Refer to our [deprecation policy](https://azure.github.io/azure-sdk/policies_support.html) for more details.
Package servicefabric implements the Azure ARM Servicefabric service API version 2021-06-01.
Service Fabric Management Client
Index ¶
- Constants
- func UserAgent() string
- func Version() string
- type ApplicationDeltaHealthPolicy
- type ApplicationHealthPolicy
- type ApplicationMetricDescription
- type ApplicationResource
- type ApplicationResourceList
- type ApplicationResourceProperties
- type ApplicationResourceUpdate
- type ApplicationResourceUpdateProperties
- type ApplicationTypeResource
- type ApplicationTypeResourceList
- type ApplicationTypeResourceProperties
- type ApplicationTypeVersionResource
- type ApplicationTypeVersionResourceList
- type ApplicationTypeVersionResourceProperties
- type ApplicationTypeVersionsCleanupPolicy
- type ApplicationTypeVersionsClient
- func (client ApplicationTypeVersionsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, clusterName string, ...) (result ApplicationTypeVersionsCreateOrUpdateFuture, err error)
- func (client ApplicationTypeVersionsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, clusterName string, ...) (*http.Request, error)
- func (client ApplicationTypeVersionsClient) CreateOrUpdateResponder(resp *http.Response) (result ApplicationTypeVersionResource, err error)
- func (client ApplicationTypeVersionsClient) CreateOrUpdateSender(req *http.Request) (future ApplicationTypeVersionsCreateOrUpdateFuture, err error)
- func (client ApplicationTypeVersionsClient) Delete(ctx context.Context, resourceGroupName string, clusterName string, ...) (result ApplicationTypeVersionsDeleteFuture, err error)
- func (client ApplicationTypeVersionsClient) DeletePreparer(ctx context.Context, resourceGroupName string, clusterName string, ...) (*http.Request, error)
- func (client ApplicationTypeVersionsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)
- func (client ApplicationTypeVersionsClient) DeleteSender(req *http.Request) (future ApplicationTypeVersionsDeleteFuture, err error)
- func (client ApplicationTypeVersionsClient) Get(ctx context.Context, resourceGroupName string, clusterName string, ...) (result ApplicationTypeVersionResource, err error)
- func (client ApplicationTypeVersionsClient) GetPreparer(ctx context.Context, resourceGroupName string, clusterName string, ...) (*http.Request, error)
- func (client ApplicationTypeVersionsClient) GetResponder(resp *http.Response) (result ApplicationTypeVersionResource, err error)
- func (client ApplicationTypeVersionsClient) GetSender(req *http.Request) (*http.Response, error)
- func (client ApplicationTypeVersionsClient) List(ctx context.Context, resourceGroupName string, clusterName string, ...) (result ApplicationTypeVersionResourceList, err error)
- func (client ApplicationTypeVersionsClient) ListPreparer(ctx context.Context, resourceGroupName string, clusterName string, ...) (*http.Request, error)
- func (client ApplicationTypeVersionsClient) ListResponder(resp *http.Response) (result ApplicationTypeVersionResourceList, err error)
- func (client ApplicationTypeVersionsClient) ListSender(req *http.Request) (*http.Response, error)
- type ApplicationTypeVersionsCreateOrUpdateFuture
- type ApplicationTypeVersionsDeleteFuture
- type ApplicationTypesClient
- func (client ApplicationTypesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, clusterName string, ...) (result ApplicationTypeResource, err error)
- func (client ApplicationTypesClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, clusterName string, ...) (*http.Request, error)
- func (client ApplicationTypesClient) CreateOrUpdateResponder(resp *http.Response) (result ApplicationTypeResource, err error)
- func (client ApplicationTypesClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error)
- func (client ApplicationTypesClient) Delete(ctx context.Context, resourceGroupName string, clusterName string, ...) (result ApplicationTypesDeleteFuture, err error)
- func (client ApplicationTypesClient) DeletePreparer(ctx context.Context, resourceGroupName string, clusterName string, ...) (*http.Request, error)
- func (client ApplicationTypesClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)
- func (client ApplicationTypesClient) DeleteSender(req *http.Request) (future ApplicationTypesDeleteFuture, err error)
- func (client ApplicationTypesClient) Get(ctx context.Context, resourceGroupName string, clusterName string, ...) (result ApplicationTypeResource, err error)
- func (client ApplicationTypesClient) GetPreparer(ctx context.Context, resourceGroupName string, clusterName string, ...) (*http.Request, error)
- func (client ApplicationTypesClient) GetResponder(resp *http.Response) (result ApplicationTypeResource, err error)
- func (client ApplicationTypesClient) GetSender(req *http.Request) (*http.Response, error)
- func (client ApplicationTypesClient) List(ctx context.Context, resourceGroupName string, clusterName string) (result ApplicationTypeResourceList, err error)
- func (client ApplicationTypesClient) ListPreparer(ctx context.Context, resourceGroupName string, clusterName string) (*http.Request, error)
- func (client ApplicationTypesClient) ListResponder(resp *http.Response) (result ApplicationTypeResourceList, err error)
- func (client ApplicationTypesClient) ListSender(req *http.Request) (*http.Response, error)
- type ApplicationTypesDeleteFuture
- type ApplicationUpgradePolicy
- type ApplicationUserAssignedIdentity
- type ApplicationsClient
- func (client ApplicationsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, clusterName string, ...) (result ApplicationsCreateOrUpdateFuture, err error)
- func (client ApplicationsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, clusterName string, ...) (*http.Request, error)
- func (client ApplicationsClient) CreateOrUpdateResponder(resp *http.Response) (result ApplicationResource, err error)
- func (client ApplicationsClient) CreateOrUpdateSender(req *http.Request) (future ApplicationsCreateOrUpdateFuture, err error)
- func (client ApplicationsClient) Delete(ctx context.Context, resourceGroupName string, clusterName string, ...) (result ApplicationsDeleteFuture, err error)
- func (client ApplicationsClient) DeletePreparer(ctx context.Context, resourceGroupName string, clusterName string, ...) (*http.Request, error)
- func (client ApplicationsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)
- func (client ApplicationsClient) DeleteSender(req *http.Request) (future ApplicationsDeleteFuture, err error)
- func (client ApplicationsClient) Get(ctx context.Context, resourceGroupName string, clusterName string, ...) (result ApplicationResource, err error)
- func (client ApplicationsClient) GetPreparer(ctx context.Context, resourceGroupName string, clusterName string, ...) (*http.Request, error)
- func (client ApplicationsClient) GetResponder(resp *http.Response) (result ApplicationResource, err error)
- func (client ApplicationsClient) GetSender(req *http.Request) (*http.Response, error)
- func (client ApplicationsClient) List(ctx context.Context, resourceGroupName string, clusterName string) (result ApplicationResourceList, err error)
- func (client ApplicationsClient) ListPreparer(ctx context.Context, resourceGroupName string, clusterName string) (*http.Request, error)
- func (client ApplicationsClient) ListResponder(resp *http.Response) (result ApplicationResourceList, err error)
- func (client ApplicationsClient) ListSender(req *http.Request) (*http.Response, error)
- func (client ApplicationsClient) Update(ctx context.Context, resourceGroupName string, clusterName string, ...) (result ApplicationsUpdateFuture, err error)
- func (client ApplicationsClient) UpdatePreparer(ctx context.Context, resourceGroupName string, clusterName string, ...) (*http.Request, error)
- func (client ApplicationsClient) UpdateResponder(resp *http.Response) (result ApplicationResource, err error)
- func (client ApplicationsClient) UpdateSender(req *http.Request) (future ApplicationsUpdateFuture, err error)
- type ApplicationsCreateOrUpdateFuture
- type ApplicationsDeleteFuture
- type ApplicationsUpdateFuture
- type ArmApplicationHealthPolicy
- type ArmRollingUpgradeMonitoringPolicy
- type ArmServicePackageActivationMode
- type ArmServiceTypeHealthPolicy
- type ArmUpgradeFailureAction
- type AvailableOperationDisplay
- type AzureActiveDirectory
- type BaseClient
- type BasicPartitionSchemeDescription
- type BasicServicePlacementPolicyDescription
- type BasicServiceResourceProperties
- type BasicServiceResourceUpdateProperties
- type CertificateDescription
- type ClientCertificateCommonName
- type ClientCertificateThumbprint
- type Cluster
- type ClusterCodeVersionsListResult
- type ClusterCodeVersionsResult
- type ClusterHealthPolicy
- type ClusterListResult
- type ClusterProperties
- type ClusterPropertiesUpdateParameters
- type ClusterState
- type ClusterUpdateParameters
- type ClusterUpgradeCadence
- type ClusterUpgradeDeltaHealthPolicy
- type ClusterUpgradePolicy
- type ClusterVersionDetails
- type ClusterVersionsClient
- func (client ClusterVersionsClient) Get(ctx context.Context, location string, clusterVersion string) (result ClusterCodeVersionsListResult, err error)
- func (client ClusterVersionsClient) GetByEnvironment(ctx context.Context, location string, environment string, ...) (result ClusterCodeVersionsListResult, err error)
- func (client ClusterVersionsClient) GetByEnvironmentPreparer(ctx context.Context, location string, environment string, ...) (*http.Request, error)
- func (client ClusterVersionsClient) GetByEnvironmentResponder(resp *http.Response) (result ClusterCodeVersionsListResult, err error)
- func (client ClusterVersionsClient) GetByEnvironmentSender(req *http.Request) (*http.Response, error)
- func (client ClusterVersionsClient) GetPreparer(ctx context.Context, location string, clusterVersion string) (*http.Request, error)
- func (client ClusterVersionsClient) GetResponder(resp *http.Response) (result ClusterCodeVersionsListResult, err error)
- func (client ClusterVersionsClient) GetSender(req *http.Request) (*http.Response, error)
- func (client ClusterVersionsClient) List(ctx context.Context, location string) (result ClusterCodeVersionsListResult, err error)
- func (client ClusterVersionsClient) ListByEnvironment(ctx context.Context, location string, environment string) (result ClusterCodeVersionsListResult, err error)
- func (client ClusterVersionsClient) ListByEnvironmentPreparer(ctx context.Context, location string, environment string) (*http.Request, error)
- func (client ClusterVersionsClient) ListByEnvironmentResponder(resp *http.Response) (result ClusterCodeVersionsListResult, err error)
- func (client ClusterVersionsClient) ListByEnvironmentSender(req *http.Request) (*http.Response, error)
- func (client ClusterVersionsClient) ListPreparer(ctx context.Context, location string) (*http.Request, error)
- func (client ClusterVersionsClient) ListResponder(resp *http.Response) (result ClusterCodeVersionsListResult, err error)
- func (client ClusterVersionsClient) ListSender(req *http.Request) (*http.Response, error)
- type ClustersClient
- func (client ClustersClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, clusterName string, ...) (result ClustersCreateOrUpdateFuture, err error)
- func (client ClustersClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, clusterName string, ...) (*http.Request, error)
- func (client ClustersClient) CreateOrUpdateResponder(resp *http.Response) (result Cluster, err error)
- func (client ClustersClient) CreateOrUpdateSender(req *http.Request) (future ClustersCreateOrUpdateFuture, err error)
- func (client ClustersClient) Delete(ctx context.Context, resourceGroupName string, clusterName string) (result autorest.Response, err error)
- func (client ClustersClient) DeletePreparer(ctx context.Context, resourceGroupName string, clusterName string) (*http.Request, error)
- func (client ClustersClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)
- func (client ClustersClient) DeleteSender(req *http.Request) (*http.Response, error)
- func (client ClustersClient) Get(ctx context.Context, resourceGroupName string, clusterName string) (result Cluster, err error)
- func (client ClustersClient) GetPreparer(ctx context.Context, resourceGroupName string, clusterName string) (*http.Request, error)
- func (client ClustersClient) GetResponder(resp *http.Response) (result Cluster, err error)
- func (client ClustersClient) GetSender(req *http.Request) (*http.Response, error)
- func (client ClustersClient) List(ctx context.Context) (result ClusterListResult, err error)
- func (client ClustersClient) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result ClusterListResult, err error)
- func (client ClustersClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error)
- func (client ClustersClient) ListByResourceGroupResponder(resp *http.Response) (result ClusterListResult, err error)
- func (client ClustersClient) ListByResourceGroupSender(req *http.Request) (*http.Response, error)
- func (client ClustersClient) ListPreparer(ctx context.Context) (*http.Request, error)
- func (client ClustersClient) ListResponder(resp *http.Response) (result ClusterListResult, err error)
- func (client ClustersClient) ListSender(req *http.Request) (*http.Response, error)
- func (client ClustersClient) ListUpgradableVersions(ctx context.Context, resourceGroupName string, clusterName string, ...) (result UpgradableVersionPathResult, err error)
- func (client ClustersClient) ListUpgradableVersionsPreparer(ctx context.Context, resourceGroupName string, clusterName string, ...) (*http.Request, error)
- func (client ClustersClient) ListUpgradableVersionsResponder(resp *http.Response) (result UpgradableVersionPathResult, err error)
- func (client ClustersClient) ListUpgradableVersionsSender(req *http.Request) (*http.Response, error)
- func (client ClustersClient) Update(ctx context.Context, resourceGroupName string, clusterName string, ...) (result ClustersUpdateFuture, err error)
- func (client ClustersClient) UpdatePreparer(ctx context.Context, resourceGroupName string, clusterName string, ...) (*http.Request, error)
- func (client ClustersClient) UpdateResponder(resp *http.Response) (result Cluster, err error)
- func (client ClustersClient) UpdateSender(req *http.Request) (future ClustersUpdateFuture, err error)
- type ClustersCreateOrUpdateFuture
- type ClustersUpdateFuture
- type DiagnosticsStorageAccountConfig
- type DurabilityLevel
- type EndpointRangeDescription
- type Environment
- type ErrorModel
- type ErrorModelError
- type ManagedIdentity
- type ManagedIdentityType
- type MoveCost
- type NamedPartitionSchemeDescription
- func (npsd NamedPartitionSchemeDescription) AsBasicPartitionSchemeDescription() (BasicPartitionSchemeDescription, bool)
- func (npsd NamedPartitionSchemeDescription) AsNamedPartitionSchemeDescription() (*NamedPartitionSchemeDescription, bool)
- func (npsd NamedPartitionSchemeDescription) AsPartitionSchemeDescription() (*PartitionSchemeDescription, bool)
- func (npsd NamedPartitionSchemeDescription) AsSingletonPartitionSchemeDescription() (*SingletonPartitionSchemeDescription, bool)
- func (npsd NamedPartitionSchemeDescription) AsUniformInt64RangePartitionSchemeDescription() (*UniformInt64RangePartitionSchemeDescription, bool)
- func (npsd NamedPartitionSchemeDescription) MarshalJSON() ([]byte, error)
- type NodeTypeDescription
- type Notification
- type NotificationChannel
- type NotificationLevel
- type NotificationTarget
- type OperationListResult
- type OperationListResultIterator
- func (iter *OperationListResultIterator) Next() error
- func (iter *OperationListResultIterator) NextWithContext(ctx context.Context) (err error)
- func (iter OperationListResultIterator) NotDone() bool
- func (iter OperationListResultIterator) Response() OperationListResult
- func (iter OperationListResultIterator) Value() OperationResult
- type OperationListResultPage
- func (page *OperationListResultPage) Next() error
- func (page *OperationListResultPage) NextWithContext(ctx context.Context) (err error)
- func (page OperationListResultPage) NotDone() bool
- func (page OperationListResultPage) Response() OperationListResult
- func (page OperationListResultPage) Values() []OperationResult
- type OperationResult
- type OperationsClient
- func (client OperationsClient) List(ctx context.Context, APIVersion string) (result OperationListResultPage, err error)
- func (client OperationsClient) ListComplete(ctx context.Context, APIVersion string) (result OperationListResultIterator, err error)
- func (client OperationsClient) ListPreparer(ctx context.Context, APIVersion string) (*http.Request, error)
- func (client OperationsClient) ListResponder(resp *http.Response) (result OperationListResult, err error)
- func (client OperationsClient) ListSender(req *http.Request) (*http.Response, error)
- type PartitionScheme
- type PartitionSchemeBasicPartitionSchemeDescription
- type PartitionSchemeDescription
- func (psd PartitionSchemeDescription) AsBasicPartitionSchemeDescription() (BasicPartitionSchemeDescription, bool)
- func (psd PartitionSchemeDescription) AsNamedPartitionSchemeDescription() (*NamedPartitionSchemeDescription, bool)
- func (psd PartitionSchemeDescription) AsPartitionSchemeDescription() (*PartitionSchemeDescription, bool)
- func (psd PartitionSchemeDescription) AsSingletonPartitionSchemeDescription() (*SingletonPartitionSchemeDescription, bool)
- func (psd PartitionSchemeDescription) AsUniformInt64RangePartitionSchemeDescription() (*UniformInt64RangePartitionSchemeDescription, bool)
- func (psd PartitionSchemeDescription) MarshalJSON() ([]byte, error)
- type ProvisioningState
- type ProxyResource
- type ReliabilityLevel
- type ReliabilityLevel1
- type Resource
- type RollingUpgradeMode
- type ServerCertificateCommonName
- type ServerCertificateCommonNames
- type ServiceCorrelationDescription
- type ServiceCorrelationScheme
- type ServiceKind
- type ServiceKindBasicServiceResourceProperties
- type ServiceKindBasicServiceResourceUpdateProperties
- type ServiceLoadMetricDescription
- type ServiceLoadMetricWeight
- type ServicePlacementPolicyDescription
- func (sppd ServicePlacementPolicyDescription) AsBasicServicePlacementPolicyDescription() (BasicServicePlacementPolicyDescription, bool)
- func (sppd ServicePlacementPolicyDescription) AsServicePlacementPolicyDescription() (*ServicePlacementPolicyDescription, bool)
- func (sppd ServicePlacementPolicyDescription) MarshalJSON() ([]byte, error)
- type ServicePlacementPolicyType
- type ServiceResource
- type ServiceResourceList
- type ServiceResourceProperties
- func (srp ServiceResourceProperties) AsBasicServiceResourceProperties() (BasicServiceResourceProperties, bool)
- func (srp ServiceResourceProperties) AsServiceResourceProperties() (*ServiceResourceProperties, bool)
- func (srp ServiceResourceProperties) AsStatefulServiceProperties() (*StatefulServiceProperties, bool)
- func (srp ServiceResourceProperties) AsStatelessServiceProperties() (*StatelessServiceProperties, bool)
- func (srp ServiceResourceProperties) MarshalJSON() ([]byte, error)
- func (srp *ServiceResourceProperties) UnmarshalJSON(body []byte) error
- type ServiceResourcePropertiesBase
- type ServiceResourceUpdate
- type ServiceResourceUpdateProperties
- func (srup ServiceResourceUpdateProperties) AsBasicServiceResourceUpdateProperties() (BasicServiceResourceUpdateProperties, bool)
- func (srup ServiceResourceUpdateProperties) AsServiceResourceUpdateProperties() (*ServiceResourceUpdateProperties, bool)
- func (srup ServiceResourceUpdateProperties) AsStatefulServiceUpdateProperties() (*StatefulServiceUpdateProperties, bool)
- func (srup ServiceResourceUpdateProperties) AsStatelessServiceUpdateProperties() (*StatelessServiceUpdateProperties, bool)
- func (srup ServiceResourceUpdateProperties) MarshalJSON() ([]byte, error)
- func (srup *ServiceResourceUpdateProperties) UnmarshalJSON(body []byte) error
- type ServiceTypeDeltaHealthPolicy
- type ServiceTypeHealthPolicy
- type ServicesClient
- func (client ServicesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, clusterName string, ...) (result ServicesCreateOrUpdateFuture, err error)
- func (client ServicesClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, clusterName string, ...) (*http.Request, error)
- func (client ServicesClient) CreateOrUpdateResponder(resp *http.Response) (result ServiceResource, err error)
- func (client ServicesClient) CreateOrUpdateSender(req *http.Request) (future ServicesCreateOrUpdateFuture, err error)
- func (client ServicesClient) Delete(ctx context.Context, resourceGroupName string, clusterName string, ...) (result ServicesDeleteFuture, err error)
- func (client ServicesClient) DeletePreparer(ctx context.Context, resourceGroupName string, clusterName string, ...) (*http.Request, error)
- func (client ServicesClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)
- func (client ServicesClient) DeleteSender(req *http.Request) (future ServicesDeleteFuture, err error)
- func (client ServicesClient) Get(ctx context.Context, resourceGroupName string, clusterName string, ...) (result ServiceResource, err error)
- func (client ServicesClient) GetPreparer(ctx context.Context, resourceGroupName string, clusterName string, ...) (*http.Request, error)
- func (client ServicesClient) GetResponder(resp *http.Response) (result ServiceResource, err error)
- func (client ServicesClient) GetSender(req *http.Request) (*http.Response, error)
- func (client ServicesClient) List(ctx context.Context, resourceGroupName string, clusterName string, ...) (result ServiceResourceList, err error)
- func (client ServicesClient) ListPreparer(ctx context.Context, resourceGroupName string, clusterName string, ...) (*http.Request, error)
- func (client ServicesClient) ListResponder(resp *http.Response) (result ServiceResourceList, err error)
- func (client ServicesClient) ListSender(req *http.Request) (*http.Response, error)
- func (client ServicesClient) Update(ctx context.Context, resourceGroupName string, clusterName string, ...) (result ServicesUpdateFuture, err error)
- func (client ServicesClient) UpdatePreparer(ctx context.Context, resourceGroupName string, clusterName string, ...) (*http.Request, error)
- func (client ServicesClient) UpdateResponder(resp *http.Response) (result ServiceResource, err error)
- func (client ServicesClient) UpdateSender(req *http.Request) (future ServicesUpdateFuture, err error)
- type ServicesCreateOrUpdateFuture
- type ServicesDeleteFuture
- type ServicesUpdateFuture
- type SettingsParameterDescription
- type SettingsSectionDescription
- type SfZonalUpgradeMode
- type SingletonPartitionSchemeDescription
- func (spsd SingletonPartitionSchemeDescription) AsBasicPartitionSchemeDescription() (BasicPartitionSchemeDescription, bool)
- func (spsd SingletonPartitionSchemeDescription) AsNamedPartitionSchemeDescription() (*NamedPartitionSchemeDescription, bool)
- func (spsd SingletonPartitionSchemeDescription) AsPartitionSchemeDescription() (*PartitionSchemeDescription, bool)
- func (spsd SingletonPartitionSchemeDescription) AsSingletonPartitionSchemeDescription() (*SingletonPartitionSchemeDescription, bool)
- func (spsd SingletonPartitionSchemeDescription) AsUniformInt64RangePartitionSchemeDescription() (*UniformInt64RangePartitionSchemeDescription, bool)
- func (spsd SingletonPartitionSchemeDescription) MarshalJSON() ([]byte, error)
- type StatefulServiceProperties
- func (ssp StatefulServiceProperties) AsBasicServiceResourceProperties() (BasicServiceResourceProperties, bool)
- func (ssp StatefulServiceProperties) AsServiceResourceProperties() (*ServiceResourceProperties, bool)
- func (ssp StatefulServiceProperties) AsStatefulServiceProperties() (*StatefulServiceProperties, bool)
- func (ssp StatefulServiceProperties) AsStatelessServiceProperties() (*StatelessServiceProperties, bool)
- func (ssp StatefulServiceProperties) MarshalJSON() ([]byte, error)
- func (ssp *StatefulServiceProperties) UnmarshalJSON(body []byte) error
- type StatefulServiceUpdateProperties
- func (ssup StatefulServiceUpdateProperties) AsBasicServiceResourceUpdateProperties() (BasicServiceResourceUpdateProperties, bool)
- func (ssup StatefulServiceUpdateProperties) AsServiceResourceUpdateProperties() (*ServiceResourceUpdateProperties, bool)
- func (ssup StatefulServiceUpdateProperties) AsStatefulServiceUpdateProperties() (*StatefulServiceUpdateProperties, bool)
- func (ssup StatefulServiceUpdateProperties) AsStatelessServiceUpdateProperties() (*StatelessServiceUpdateProperties, bool)
- func (ssup StatefulServiceUpdateProperties) MarshalJSON() ([]byte, error)
- func (ssup *StatefulServiceUpdateProperties) UnmarshalJSON(body []byte) error
- type StatelessServiceProperties
- func (ssp StatelessServiceProperties) AsBasicServiceResourceProperties() (BasicServiceResourceProperties, bool)
- func (ssp StatelessServiceProperties) AsServiceResourceProperties() (*ServiceResourceProperties, bool)
- func (ssp StatelessServiceProperties) AsStatefulServiceProperties() (*StatefulServiceProperties, bool)
- func (ssp StatelessServiceProperties) AsStatelessServiceProperties() (*StatelessServiceProperties, bool)
- func (ssp StatelessServiceProperties) MarshalJSON() ([]byte, error)
- func (ssp *StatelessServiceProperties) UnmarshalJSON(body []byte) error
- type StatelessServiceUpdateProperties
- func (ssup StatelessServiceUpdateProperties) AsBasicServiceResourceUpdateProperties() (BasicServiceResourceUpdateProperties, bool)
- func (ssup StatelessServiceUpdateProperties) AsServiceResourceUpdateProperties() (*ServiceResourceUpdateProperties, bool)
- func (ssup StatelessServiceUpdateProperties) AsStatefulServiceUpdateProperties() (*StatefulServiceUpdateProperties, bool)
- func (ssup StatelessServiceUpdateProperties) AsStatelessServiceUpdateProperties() (*StatelessServiceUpdateProperties, bool)
- func (ssup StatelessServiceUpdateProperties) MarshalJSON() ([]byte, error)
- func (ssup *StatelessServiceUpdateProperties) UnmarshalJSON(body []byte) error
- type SystemData
- type Type
- type UniformInt64RangePartitionSchemeDescription
- func (ui6rpsd UniformInt64RangePartitionSchemeDescription) AsBasicPartitionSchemeDescription() (BasicPartitionSchemeDescription, bool)
- func (ui6rpsd UniformInt64RangePartitionSchemeDescription) AsNamedPartitionSchemeDescription() (*NamedPartitionSchemeDescription, bool)
- func (ui6rpsd UniformInt64RangePartitionSchemeDescription) AsPartitionSchemeDescription() (*PartitionSchemeDescription, bool)
- func (ui6rpsd UniformInt64RangePartitionSchemeDescription) AsSingletonPartitionSchemeDescription() (*SingletonPartitionSchemeDescription, bool)
- func (ui6rpsd UniformInt64RangePartitionSchemeDescription) AsUniformInt64RangePartitionSchemeDescription() (*UniformInt64RangePartitionSchemeDescription, bool)
- func (ui6rpsd UniformInt64RangePartitionSchemeDescription) MarshalJSON() ([]byte, error)
- type UpgradableVersionPathResult
- type UpgradableVersionsDescription
- type UpgradeMode
- type UserAssignedIdentity
- type VmssZonalUpgradeMode
- type X509StoreName
- type X509StoreName1
Constants ¶
const (
// DefaultBaseURI is the default URI used for the service Servicefabric
DefaultBaseURI = "https://management.azure.com"
)
Variables ¶
This section is empty.
Functions ¶
func UserAgent ¶
func UserAgent() string
UserAgent returns the UserAgent string to use when sending http.Requests.
func Version ¶
func Version() string
Version returns the semantic version (see http://semver.org) of the client.
Types ¶
type ApplicationDeltaHealthPolicy ¶
type ApplicationDeltaHealthPolicy struct { // DefaultServiceTypeDeltaHealthPolicy - The delta health policy used by default to evaluate the health of a service type when upgrading the cluster. DefaultServiceTypeDeltaHealthPolicy *ServiceTypeDeltaHealthPolicy `json:"defaultServiceTypeDeltaHealthPolicy,omitempty"` // ServiceTypeDeltaHealthPolicies - The map with service type delta health policy per service type name. The map is empty by default. ServiceTypeDeltaHealthPolicies map[string]*ServiceTypeDeltaHealthPolicy `json:"serviceTypeDeltaHealthPolicies"` }
ApplicationDeltaHealthPolicy defines a delta health policy used to evaluate the health of an application or one of its child entities when upgrading the cluster.
func (ApplicationDeltaHealthPolicy) MarshalJSON ¶
func (adhp ApplicationDeltaHealthPolicy) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ApplicationDeltaHealthPolicy.
type ApplicationHealthPolicy ¶
type ApplicationHealthPolicy struct { // DefaultServiceTypeHealthPolicy - The health policy used by default to evaluate the health of a service type. DefaultServiceTypeHealthPolicy *ServiceTypeHealthPolicy `json:"defaultServiceTypeHealthPolicy,omitempty"` // ServiceTypeHealthPolicies - The map with service type health policy per service type name. The map is empty by default. ServiceTypeHealthPolicies map[string]*ServiceTypeHealthPolicy `json:"serviceTypeHealthPolicies"` }
ApplicationHealthPolicy defines a health policy used to evaluate the health of an application or one of its children entities.
func (ApplicationHealthPolicy) MarshalJSON ¶
func (ahp ApplicationHealthPolicy) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ApplicationHealthPolicy.
type ApplicationMetricDescription ¶
type ApplicationMetricDescription struct { // Name - The name of the metric. Name *string `json:"name,omitempty"` // MaximumCapacity - The maximum node capacity for Service Fabric application. // This is the maximum Load for an instance of this application on a single node. Even if the capacity of node is greater than this value, Service Fabric will limit the total load of services within the application on each node to this value. // If set to zero, capacity for this metric is unlimited on each node. // When creating a new application with application capacity defined, the product of MaximumNodes and this value must always be smaller than or equal to TotalApplicationCapacity. // When updating existing application with application capacity, the product of MaximumNodes and this value must always be smaller than or equal to TotalApplicationCapacity. MaximumCapacity *int64 `json:"maximumCapacity,omitempty"` // ReservationCapacity - The node reservation capacity for Service Fabric application. // This is the amount of load which is reserved on nodes which have instances of this application. // If MinimumNodes is specified, then the product of these values will be the capacity reserved in the cluster for the application. // If set to zero, no capacity is reserved for this metric. // When setting application capacity or when updating application capacity; this value must be smaller than or equal to MaximumCapacity for each metric. ReservationCapacity *int64 `json:"reservationCapacity,omitempty"` // TotalApplicationCapacity - The total metric capacity for Service Fabric application. // This is the total metric capacity for this application in the cluster. Service Fabric will try to limit the sum of loads of services within the application to this value. // When creating a new application with application capacity defined, the product of MaximumNodes and MaximumCapacity must always be smaller than or equal to this value. TotalApplicationCapacity *int64 `json:"totalApplicationCapacity,omitempty"` }
ApplicationMetricDescription describes capacity information for a custom resource balancing metric. This can be used to limit the total consumption of this metric by the services of this application.
type ApplicationResource ¶
type ApplicationResource struct { autorest.Response `json:"-"` Identity *ManagedIdentity `json:"identity,omitempty"` *ApplicationResourceProperties `json:"properties,omitempty"` // ID - READ-ONLY; Azure resource identifier. ID *string `json:"id,omitempty"` // Name - READ-ONLY; Azure resource name. Name *string `json:"name,omitempty"` // Type - READ-ONLY; Azure resource type. Type *string `json:"type,omitempty"` // Location - It will be deprecated in New API, resource location depends on the parent resource. Location *string `json:"location,omitempty"` // Tags - Azure resource tags. Tags map[string]*string `json:"tags"` // Etag - READ-ONLY; Azure resource etag. Etag *string `json:"etag,omitempty"` SystemData *SystemData `json:"systemData,omitempty"` }
ApplicationResource the application resource.
func (ApplicationResource) MarshalJSON ¶
func (ar ApplicationResource) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ApplicationResource.
func (*ApplicationResource) UnmarshalJSON ¶
func (ar *ApplicationResource) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for ApplicationResource struct.
type ApplicationResourceList ¶
type ApplicationResourceList struct { autorest.Response `json:"-"` Value *[]ApplicationResource `json:"value,omitempty"` // NextLink - READ-ONLY; URL to get the next set of application list results if there are any. NextLink *string `json:"nextLink,omitempty"` }
ApplicationResourceList the list of application resources.
func (ApplicationResourceList) MarshalJSON ¶
func (arl ApplicationResourceList) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ApplicationResourceList.
type ApplicationResourceProperties ¶
type ApplicationResourceProperties struct { // ProvisioningState - READ-ONLY; The current deployment or provisioning state, which only appears in the response ProvisioningState *string `json:"provisioningState,omitempty"` TypeName *string `json:"typeName,omitempty"` TypeVersion *string `json:"typeVersion,omitempty"` Parameters map[string]*string `json:"parameters"` UpgradePolicy *ApplicationUpgradePolicy `json:"upgradePolicy,omitempty"` // MinimumNodes - The minimum number of nodes where Service Fabric will reserve capacity for this application. Note that this does not mean that the services of this application will be placed on all of those nodes. If this property is set to zero, no capacity will be reserved. The value of this property cannot be more than the value of the MaximumNodes property. MinimumNodes *int64 `json:"minimumNodes,omitempty"` // MaximumNodes - The maximum number of nodes where Service Fabric will reserve capacity for this application. Note that this does not mean that the services of this application will be placed on all of those nodes. By default, the value of this property is zero and it means that the services can be placed on any node. MaximumNodes *int64 `json:"maximumNodes,omitempty"` // RemoveApplicationCapacity - Remove the current application capacity settings. RemoveApplicationCapacity *bool `json:"removeApplicationCapacity,omitempty"` Metrics *[]ApplicationMetricDescription `json:"metrics,omitempty"` // ManagedIdentities - List of user assigned identities for the application, each mapped to a friendly name. ManagedIdentities *[]ApplicationUserAssignedIdentity `json:"managedIdentities,omitempty"` }
ApplicationResourceProperties the application resource properties.
func (ApplicationResourceProperties) MarshalJSON ¶
func (arp ApplicationResourceProperties) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ApplicationResourceProperties.
type ApplicationResourceUpdate ¶
type ApplicationResourceUpdate struct { *ApplicationResourceUpdateProperties `json:"properties,omitempty"` // ID - READ-ONLY; Azure resource identifier. ID *string `json:"id,omitempty"` // Name - READ-ONLY; Azure resource name. Name *string `json:"name,omitempty"` // Type - READ-ONLY; Azure resource type. Type *string `json:"type,omitempty"` // Location - It will be deprecated in New API, resource location depends on the parent resource. Location *string `json:"location,omitempty"` // Tags - Azure resource tags. Tags map[string]*string `json:"tags"` // Etag - READ-ONLY; Azure resource etag. Etag *string `json:"etag,omitempty"` SystemData *SystemData `json:"systemData,omitempty"` }
ApplicationResourceUpdate the application resource for patch operations.
func (ApplicationResourceUpdate) MarshalJSON ¶
func (aru ApplicationResourceUpdate) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ApplicationResourceUpdate.
func (*ApplicationResourceUpdate) UnmarshalJSON ¶
func (aru *ApplicationResourceUpdate) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for ApplicationResourceUpdate struct.
type ApplicationResourceUpdateProperties ¶
type ApplicationResourceUpdateProperties struct { TypeVersion *string `json:"typeVersion,omitempty"` Parameters map[string]*string `json:"parameters"` UpgradePolicy *ApplicationUpgradePolicy `json:"upgradePolicy,omitempty"` // MinimumNodes - The minimum number of nodes where Service Fabric will reserve capacity for this application. Note that this does not mean that the services of this application will be placed on all of those nodes. If this property is set to zero, no capacity will be reserved. The value of this property cannot be more than the value of the MaximumNodes property. MinimumNodes *int64 `json:"minimumNodes,omitempty"` // MaximumNodes - The maximum number of nodes where Service Fabric will reserve capacity for this application. Note that this does not mean that the services of this application will be placed on all of those nodes. By default, the value of this property is zero and it means that the services can be placed on any node. MaximumNodes *int64 `json:"maximumNodes,omitempty"` // RemoveApplicationCapacity - Remove the current application capacity settings. RemoveApplicationCapacity *bool `json:"removeApplicationCapacity,omitempty"` Metrics *[]ApplicationMetricDescription `json:"metrics,omitempty"` // ManagedIdentities - List of user assigned identities for the application, each mapped to a friendly name. ManagedIdentities *[]ApplicationUserAssignedIdentity `json:"managedIdentities,omitempty"` }
ApplicationResourceUpdateProperties the application resource properties for patch operations.
func (ApplicationResourceUpdateProperties) MarshalJSON ¶
func (arup ApplicationResourceUpdateProperties) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ApplicationResourceUpdateProperties.
type ApplicationTypeResource ¶
type ApplicationTypeResource struct { autorest.Response `json:"-"` *ApplicationTypeResourceProperties `json:"properties,omitempty"` // ID - READ-ONLY; Azure resource identifier. ID *string `json:"id,omitempty"` // Name - READ-ONLY; Azure resource name. Name *string `json:"name,omitempty"` // Type - READ-ONLY; Azure resource type. Type *string `json:"type,omitempty"` // Location - It will be deprecated in New API, resource location depends on the parent resource. Location *string `json:"location,omitempty"` // Tags - Azure resource tags. Tags map[string]*string `json:"tags"` // Etag - READ-ONLY; Azure resource etag. Etag *string `json:"etag,omitempty"` SystemData *SystemData `json:"systemData,omitempty"` }
ApplicationTypeResource the application type name resource
func (ApplicationTypeResource) MarshalJSON ¶
func (atr ApplicationTypeResource) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ApplicationTypeResource.
func (*ApplicationTypeResource) UnmarshalJSON ¶
func (atr *ApplicationTypeResource) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for ApplicationTypeResource struct.
type ApplicationTypeResourceList ¶
type ApplicationTypeResourceList struct { autorest.Response `json:"-"` Value *[]ApplicationTypeResource `json:"value,omitempty"` // NextLink - READ-ONLY; URL to get the next set of application type list results if there are any. NextLink *string `json:"nextLink,omitempty"` }
ApplicationTypeResourceList the list of application type names.
func (ApplicationTypeResourceList) MarshalJSON ¶
func (atrl ApplicationTypeResourceList) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ApplicationTypeResourceList.
type ApplicationTypeResourceProperties ¶
type ApplicationTypeResourceProperties struct { // ProvisioningState - READ-ONLY; The current deployment or provisioning state, which only appears in the response. ProvisioningState *string `json:"provisioningState,omitempty"` }
ApplicationTypeResourceProperties the application type name properties
func (ApplicationTypeResourceProperties) MarshalJSON ¶
func (atrp ApplicationTypeResourceProperties) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ApplicationTypeResourceProperties.
type ApplicationTypeVersionResource ¶
type ApplicationTypeVersionResource struct { autorest.Response `json:"-"` *ApplicationTypeVersionResourceProperties `json:"properties,omitempty"` // ID - READ-ONLY; Azure resource identifier. ID *string `json:"id,omitempty"` // Name - READ-ONLY; Azure resource name. Name *string `json:"name,omitempty"` // Type - READ-ONLY; Azure resource type. Type *string `json:"type,omitempty"` // Location - It will be deprecated in New API, resource location depends on the parent resource. Location *string `json:"location,omitempty"` // Tags - Azure resource tags. Tags map[string]*string `json:"tags"` // Etag - READ-ONLY; Azure resource etag. Etag *string `json:"etag,omitempty"` SystemData *SystemData `json:"systemData,omitempty"` }
ApplicationTypeVersionResource an application type version resource for the specified application type name resource.
func (ApplicationTypeVersionResource) MarshalJSON ¶
func (atvr ApplicationTypeVersionResource) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ApplicationTypeVersionResource.
func (*ApplicationTypeVersionResource) UnmarshalJSON ¶
func (atvr *ApplicationTypeVersionResource) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for ApplicationTypeVersionResource struct.
type ApplicationTypeVersionResourceList ¶
type ApplicationTypeVersionResourceList struct { autorest.Response `json:"-"` Value *[]ApplicationTypeVersionResource `json:"value,omitempty"` // NextLink - READ-ONLY; URL to get the next set of application type version list results if there are any. NextLink *string `json:"nextLink,omitempty"` }
ApplicationTypeVersionResourceList the list of application type version resources for the specified application type name resource.
func (ApplicationTypeVersionResourceList) MarshalJSON ¶
func (atvrl ApplicationTypeVersionResourceList) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ApplicationTypeVersionResourceList.
type ApplicationTypeVersionResourceProperties ¶
type ApplicationTypeVersionResourceProperties struct { // ProvisioningState - READ-ONLY; The current deployment or provisioning state, which only appears in the response ProvisioningState *string `json:"provisioningState,omitempty"` // AppPackageURL - The URL to the application package AppPackageURL *string `json:"appPackageUrl,omitempty"` // DefaultParameterList - READ-ONLY DefaultParameterList map[string]*string `json:"defaultParameterList"` }
ApplicationTypeVersionResourceProperties the properties of the application type version resource.
func (ApplicationTypeVersionResourceProperties) MarshalJSON ¶
func (atvrp ApplicationTypeVersionResourceProperties) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ApplicationTypeVersionResourceProperties.
type ApplicationTypeVersionsCleanupPolicy ¶
type ApplicationTypeVersionsCleanupPolicy struct { // MaxUnusedVersionsToKeep - Number of unused versions per application type to keep. MaxUnusedVersionsToKeep *int64 `json:"maxUnusedVersionsToKeep,omitempty"` }
ApplicationTypeVersionsCleanupPolicy ...
type ApplicationTypeVersionsClient ¶
type ApplicationTypeVersionsClient struct {
BaseClient
}
ApplicationTypeVersionsClient is the service Fabric Management Client
func NewApplicationTypeVersionsClient ¶
func NewApplicationTypeVersionsClient(subscriptionID string) ApplicationTypeVersionsClient
NewApplicationTypeVersionsClient creates an instance of the ApplicationTypeVersionsClient client.
func NewApplicationTypeVersionsClientWithBaseURI ¶
func NewApplicationTypeVersionsClientWithBaseURI(baseURI string, subscriptionID string) ApplicationTypeVersionsClient
NewApplicationTypeVersionsClientWithBaseURI creates an instance of the ApplicationTypeVersionsClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func (ApplicationTypeVersionsClient) CreateOrUpdate ¶
func (client ApplicationTypeVersionsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, clusterName string, applicationTypeName string, version string, parameters ApplicationTypeVersionResource) (result ApplicationTypeVersionsCreateOrUpdateFuture, err error)
CreateOrUpdate create or update a Service Fabric application type version resource with the specified name. Parameters: resourceGroupName - the name of the resource group. clusterName - the name of the cluster resource. applicationTypeName - the name of the application type name resource. version - the application type version. parameters - the application type version resource.
func (ApplicationTypeVersionsClient) CreateOrUpdatePreparer ¶
func (client ApplicationTypeVersionsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, clusterName string, applicationTypeName string, version string, parameters ApplicationTypeVersionResource) (*http.Request, error)
CreateOrUpdatePreparer prepares the CreateOrUpdate request.
func (ApplicationTypeVersionsClient) CreateOrUpdateResponder ¶
func (client ApplicationTypeVersionsClient) CreateOrUpdateResponder(resp *http.Response) (result ApplicationTypeVersionResource, err error)
CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.
func (ApplicationTypeVersionsClient) CreateOrUpdateSender ¶
func (client ApplicationTypeVersionsClient) CreateOrUpdateSender(req *http.Request) (future ApplicationTypeVersionsCreateOrUpdateFuture, err error)
CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the http.Response Body if it receives an error.
func (ApplicationTypeVersionsClient) Delete ¶
func (client ApplicationTypeVersionsClient) Delete(ctx context.Context, resourceGroupName string, clusterName string, applicationTypeName string, version string) (result ApplicationTypeVersionsDeleteFuture, err error)
Delete delete a Service Fabric application type version resource with the specified name. Parameters: resourceGroupName - the name of the resource group. clusterName - the name of the cluster resource. applicationTypeName - the name of the application type name resource. version - the application type version.
func (ApplicationTypeVersionsClient) DeletePreparer ¶
func (client ApplicationTypeVersionsClient) DeletePreparer(ctx context.Context, resourceGroupName string, clusterName string, applicationTypeName string, version string) (*http.Request, error)
DeletePreparer prepares the Delete request.
func (ApplicationTypeVersionsClient) DeleteResponder ¶
func (client ApplicationTypeVersionsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)
DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.
func (ApplicationTypeVersionsClient) DeleteSender ¶
func (client ApplicationTypeVersionsClient) DeleteSender(req *http.Request) (future ApplicationTypeVersionsDeleteFuture, err error)
DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.
func (ApplicationTypeVersionsClient) Get ¶
func (client ApplicationTypeVersionsClient) Get(ctx context.Context, resourceGroupName string, clusterName string, applicationTypeName string, version string) (result ApplicationTypeVersionResource, err error)
Get get a Service Fabric application type version resource created or in the process of being created in the Service Fabric application type name resource. Parameters: resourceGroupName - the name of the resource group. clusterName - the name of the cluster resource. applicationTypeName - the name of the application type name resource. version - the application type version.
func (ApplicationTypeVersionsClient) GetPreparer ¶
func (client ApplicationTypeVersionsClient) GetPreparer(ctx context.Context, resourceGroupName string, clusterName string, applicationTypeName string, version string) (*http.Request, error)
GetPreparer prepares the Get request.
func (ApplicationTypeVersionsClient) GetResponder ¶
func (client ApplicationTypeVersionsClient) GetResponder(resp *http.Response) (result ApplicationTypeVersionResource, err error)
GetResponder handles the response to the Get request. The method always closes the http.Response Body.
func (ApplicationTypeVersionsClient) GetSender ¶
GetSender sends the Get request. The method will close the http.Response Body if it receives an error.
func (ApplicationTypeVersionsClient) List ¶
func (client ApplicationTypeVersionsClient) List(ctx context.Context, resourceGroupName string, clusterName string, applicationTypeName string) (result ApplicationTypeVersionResourceList, err error)
List gets all application type version resources created or in the process of being created in the Service Fabric application type name resource. Parameters: resourceGroupName - the name of the resource group. clusterName - the name of the cluster resource. applicationTypeName - the name of the application type name resource.
func (ApplicationTypeVersionsClient) ListPreparer ¶
func (client ApplicationTypeVersionsClient) ListPreparer(ctx context.Context, resourceGroupName string, clusterName string, applicationTypeName string) (*http.Request, error)
ListPreparer prepares the List request.
func (ApplicationTypeVersionsClient) ListResponder ¶
func (client ApplicationTypeVersionsClient) ListResponder(resp *http.Response) (result ApplicationTypeVersionResourceList, err error)
ListResponder handles the response to the List request. The method always closes the http.Response Body.
func (ApplicationTypeVersionsClient) ListSender ¶
ListSender sends the List request. The method will close the http.Response Body if it receives an error.
type ApplicationTypeVersionsCreateOrUpdateFuture ¶
type ApplicationTypeVersionsCreateOrUpdateFuture struct { azure.FutureAPI // Result returns the result of the asynchronous operation. // If the operation has not completed it will return an error. Result func(ApplicationTypeVersionsClient) (ApplicationTypeVersionResource, error) }
ApplicationTypeVersionsCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a long-running operation.
func (*ApplicationTypeVersionsCreateOrUpdateFuture) UnmarshalJSON ¶
func (future *ApplicationTypeVersionsCreateOrUpdateFuture) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaller for CreateFuture.
type ApplicationTypeVersionsDeleteFuture ¶
type ApplicationTypeVersionsDeleteFuture struct { azure.FutureAPI // Result returns the result of the asynchronous operation. // If the operation has not completed it will return an error. Result func(ApplicationTypeVersionsClient) (autorest.Response, error) }
ApplicationTypeVersionsDeleteFuture an abstraction for monitoring and retrieving the results of a long-running operation.
func (*ApplicationTypeVersionsDeleteFuture) UnmarshalJSON ¶
func (future *ApplicationTypeVersionsDeleteFuture) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaller for CreateFuture.
type ApplicationTypesClient ¶
type ApplicationTypesClient struct {
BaseClient
}
ApplicationTypesClient is the service Fabric Management Client
func NewApplicationTypesClient ¶
func NewApplicationTypesClient(subscriptionID string) ApplicationTypesClient
NewApplicationTypesClient creates an instance of the ApplicationTypesClient client.
func NewApplicationTypesClientWithBaseURI ¶
func NewApplicationTypesClientWithBaseURI(baseURI string, subscriptionID string) ApplicationTypesClient
NewApplicationTypesClientWithBaseURI creates an instance of the ApplicationTypesClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func (ApplicationTypesClient) CreateOrUpdate ¶
func (client ApplicationTypesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, clusterName string, applicationTypeName string, parameters ApplicationTypeResource) (result ApplicationTypeResource, err error)
CreateOrUpdate create or update a Service Fabric application type name resource with the specified name. Parameters: resourceGroupName - the name of the resource group. clusterName - the name of the cluster resource. applicationTypeName - the name of the application type name resource. parameters - the application type name resource.
func (ApplicationTypesClient) CreateOrUpdatePreparer ¶
func (client ApplicationTypesClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, clusterName string, applicationTypeName string, parameters ApplicationTypeResource) (*http.Request, error)
CreateOrUpdatePreparer prepares the CreateOrUpdate request.
func (ApplicationTypesClient) CreateOrUpdateResponder ¶
func (client ApplicationTypesClient) CreateOrUpdateResponder(resp *http.Response) (result ApplicationTypeResource, err error)
CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.
func (ApplicationTypesClient) CreateOrUpdateSender ¶
func (client ApplicationTypesClient) CreateOrUpdateSender(req *http.Request) (*http.Response, error)
CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the http.Response Body if it receives an error.
func (ApplicationTypesClient) Delete ¶
func (client ApplicationTypesClient) Delete(ctx context.Context, resourceGroupName string, clusterName string, applicationTypeName string) (result ApplicationTypesDeleteFuture, err error)
Delete delete a Service Fabric application type name resource with the specified name. Parameters: resourceGroupName - the name of the resource group. clusterName - the name of the cluster resource. applicationTypeName - the name of the application type name resource.
func (ApplicationTypesClient) DeletePreparer ¶
func (client ApplicationTypesClient) DeletePreparer(ctx context.Context, resourceGroupName string, clusterName string, applicationTypeName string) (*http.Request, error)
DeletePreparer prepares the Delete request.
func (ApplicationTypesClient) DeleteResponder ¶
func (client ApplicationTypesClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)
DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.
func (ApplicationTypesClient) DeleteSender ¶
func (client ApplicationTypesClient) DeleteSender(req *http.Request) (future ApplicationTypesDeleteFuture, err error)
DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.
func (ApplicationTypesClient) Get ¶
func (client ApplicationTypesClient) Get(ctx context.Context, resourceGroupName string, clusterName string, applicationTypeName string) (result ApplicationTypeResource, err error)
Get get a Service Fabric application type name resource created or in the process of being created in the Service Fabric cluster resource. Parameters: resourceGroupName - the name of the resource group. clusterName - the name of the cluster resource. applicationTypeName - the name of the application type name resource.
func (ApplicationTypesClient) GetPreparer ¶
func (client ApplicationTypesClient) GetPreparer(ctx context.Context, resourceGroupName string, clusterName string, applicationTypeName string) (*http.Request, error)
GetPreparer prepares the Get request.
func (ApplicationTypesClient) GetResponder ¶
func (client ApplicationTypesClient) GetResponder(resp *http.Response) (result ApplicationTypeResource, err error)
GetResponder handles the response to the Get request. The method always closes the http.Response Body.
func (ApplicationTypesClient) GetSender ¶
GetSender sends the Get request. The method will close the http.Response Body if it receives an error.
func (ApplicationTypesClient) List ¶
func (client ApplicationTypesClient) List(ctx context.Context, resourceGroupName string, clusterName string) (result ApplicationTypeResourceList, err error)
List gets all application type name resources created or in the process of being created in the Service Fabric cluster resource. Parameters: resourceGroupName - the name of the resource group. clusterName - the name of the cluster resource.
func (ApplicationTypesClient) ListPreparer ¶
func (client ApplicationTypesClient) ListPreparer(ctx context.Context, resourceGroupName string, clusterName string) (*http.Request, error)
ListPreparer prepares the List request.
func (ApplicationTypesClient) ListResponder ¶
func (client ApplicationTypesClient) ListResponder(resp *http.Response) (result ApplicationTypeResourceList, err error)
ListResponder handles the response to the List request. The method always closes the http.Response Body.
func (ApplicationTypesClient) ListSender ¶
ListSender sends the List request. The method will close the http.Response Body if it receives an error.
type ApplicationTypesDeleteFuture ¶
type ApplicationTypesDeleteFuture struct { azure.FutureAPI // Result returns the result of the asynchronous operation. // If the operation has not completed it will return an error. Result func(ApplicationTypesClient) (autorest.Response, error) }
ApplicationTypesDeleteFuture an abstraction for monitoring and retrieving the results of a long-running operation.
func (*ApplicationTypesDeleteFuture) UnmarshalJSON ¶
func (future *ApplicationTypesDeleteFuture) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaller for CreateFuture.
type ApplicationUpgradePolicy ¶
type ApplicationUpgradePolicy struct { // UpgradeReplicaSetCheckTimeout - The maximum amount of time to block processing of an upgrade domain and prevent loss of availability when there are unexpected issues. When this timeout expires, processing of the upgrade domain will proceed regardless of availability loss issues. The timeout is reset at the start of each upgrade domain. Valid values are between 0 and 42949672925 inclusive. (unsigned 32-bit integer). UpgradeReplicaSetCheckTimeout *string `json:"upgradeReplicaSetCheckTimeout,omitempty"` ForceRestart *bool `json:"forceRestart,omitempty"` RollingUpgradeMonitoringPolicy *ArmRollingUpgradeMonitoringPolicy `json:"rollingUpgradeMonitoringPolicy,omitempty"` ApplicationHealthPolicy *ArmApplicationHealthPolicy `json:"applicationHealthPolicy,omitempty"` // UpgradeMode - Possible values include: 'RollingUpgradeModeInvalid', 'RollingUpgradeModeUnmonitoredAuto', 'RollingUpgradeModeUnmonitoredManual', 'RollingUpgradeModeMonitored' UpgradeMode RollingUpgradeMode `json:"upgradeMode,omitempty"` // RecreateApplication - Determines whether the application should be recreated on update. If value=true, the rest of the upgrade policy parameters are not allowed and it will result in availability loss. RecreateApplication *bool `json:"recreateApplication,omitempty"` }
ApplicationUpgradePolicy describes the policy for a monitored application upgrade.
type ApplicationUserAssignedIdentity ¶
type ApplicationUserAssignedIdentity struct { // Name - The friendly name of user assigned identity. Name *string `json:"name,omitempty"` // PrincipalID - The principal id of user assigned identity. PrincipalID *string `json:"principalId,omitempty"` }
ApplicationUserAssignedIdentity ...
type ApplicationsClient ¶
type ApplicationsClient struct {
BaseClient
}
ApplicationsClient is the service Fabric Management Client
func NewApplicationsClient ¶
func NewApplicationsClient(subscriptionID string) ApplicationsClient
NewApplicationsClient creates an instance of the ApplicationsClient client.
func NewApplicationsClientWithBaseURI ¶
func NewApplicationsClientWithBaseURI(baseURI string, subscriptionID string) ApplicationsClient
NewApplicationsClientWithBaseURI creates an instance of the ApplicationsClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func (ApplicationsClient) CreateOrUpdate ¶
func (client ApplicationsClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, clusterName string, applicationName string, parameters ApplicationResource) (result ApplicationsCreateOrUpdateFuture, err error)
CreateOrUpdate create or update a Service Fabric application resource with the specified name. Parameters: resourceGroupName - the name of the resource group. clusterName - the name of the cluster resource. applicationName - the name of the application resource. parameters - the application resource.
func (ApplicationsClient) CreateOrUpdatePreparer ¶
func (client ApplicationsClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, clusterName string, applicationName string, parameters ApplicationResource) (*http.Request, error)
CreateOrUpdatePreparer prepares the CreateOrUpdate request.
func (ApplicationsClient) CreateOrUpdateResponder ¶
func (client ApplicationsClient) CreateOrUpdateResponder(resp *http.Response) (result ApplicationResource, err error)
CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.
func (ApplicationsClient) CreateOrUpdateSender ¶
func (client ApplicationsClient) CreateOrUpdateSender(req *http.Request) (future ApplicationsCreateOrUpdateFuture, err error)
CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the http.Response Body if it receives an error.
func (ApplicationsClient) Delete ¶
func (client ApplicationsClient) Delete(ctx context.Context, resourceGroupName string, clusterName string, applicationName string) (result ApplicationsDeleteFuture, err error)
Delete delete a Service Fabric application resource with the specified name. Parameters: resourceGroupName - the name of the resource group. clusterName - the name of the cluster resource. applicationName - the name of the application resource.
func (ApplicationsClient) DeletePreparer ¶
func (client ApplicationsClient) DeletePreparer(ctx context.Context, resourceGroupName string, clusterName string, applicationName string) (*http.Request, error)
DeletePreparer prepares the Delete request.
func (ApplicationsClient) DeleteResponder ¶
func (client ApplicationsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)
DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.
func (ApplicationsClient) DeleteSender ¶
func (client ApplicationsClient) DeleteSender(req *http.Request) (future ApplicationsDeleteFuture, err error)
DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.
func (ApplicationsClient) Get ¶
func (client ApplicationsClient) Get(ctx context.Context, resourceGroupName string, clusterName string, applicationName string) (result ApplicationResource, err error)
Get get a Service Fabric application resource created or in the process of being created in the Service Fabric cluster resource. Parameters: resourceGroupName - the name of the resource group. clusterName - the name of the cluster resource. applicationName - the name of the application resource.
func (ApplicationsClient) GetPreparer ¶
func (client ApplicationsClient) GetPreparer(ctx context.Context, resourceGroupName string, clusterName string, applicationName string) (*http.Request, error)
GetPreparer prepares the Get request.
func (ApplicationsClient) GetResponder ¶
func (client ApplicationsClient) GetResponder(resp *http.Response) (result ApplicationResource, err error)
GetResponder handles the response to the Get request. The method always closes the http.Response Body.
func (ApplicationsClient) GetSender ¶
GetSender sends the Get request. The method will close the http.Response Body if it receives an error.
func (ApplicationsClient) List ¶
func (client ApplicationsClient) List(ctx context.Context, resourceGroupName string, clusterName string) (result ApplicationResourceList, err error)
List gets all application resources created or in the process of being created in the Service Fabric cluster resource. Parameters: resourceGroupName - the name of the resource group. clusterName - the name of the cluster resource.
func (ApplicationsClient) ListPreparer ¶
func (client ApplicationsClient) ListPreparer(ctx context.Context, resourceGroupName string, clusterName string) (*http.Request, error)
ListPreparer prepares the List request.
func (ApplicationsClient) ListResponder ¶
func (client ApplicationsClient) ListResponder(resp *http.Response) (result ApplicationResourceList, err error)
ListResponder handles the response to the List request. The method always closes the http.Response Body.
func (ApplicationsClient) ListSender ¶
ListSender sends the List request. The method will close the http.Response Body if it receives an error.
func (ApplicationsClient) Update ¶
func (client ApplicationsClient) Update(ctx context.Context, resourceGroupName string, clusterName string, applicationName string, parameters ApplicationResourceUpdate) (result ApplicationsUpdateFuture, err error)
Update update a Service Fabric application resource with the specified name. Parameters: resourceGroupName - the name of the resource group. clusterName - the name of the cluster resource. applicationName - the name of the application resource. parameters - the application resource for patch operations.
func (ApplicationsClient) UpdatePreparer ¶
func (client ApplicationsClient) UpdatePreparer(ctx context.Context, resourceGroupName string, clusterName string, applicationName string, parameters ApplicationResourceUpdate) (*http.Request, error)
UpdatePreparer prepares the Update request.
func (ApplicationsClient) UpdateResponder ¶
func (client ApplicationsClient) UpdateResponder(resp *http.Response) (result ApplicationResource, err error)
UpdateResponder handles the response to the Update request. The method always closes the http.Response Body.
func (ApplicationsClient) UpdateSender ¶
func (client ApplicationsClient) UpdateSender(req *http.Request) (future ApplicationsUpdateFuture, err error)
UpdateSender sends the Update request. The method will close the http.Response Body if it receives an error.
type ApplicationsCreateOrUpdateFuture ¶
type ApplicationsCreateOrUpdateFuture struct { azure.FutureAPI // Result returns the result of the asynchronous operation. // If the operation has not completed it will return an error. Result func(ApplicationsClient) (ApplicationResource, error) }
ApplicationsCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a long-running operation.
func (*ApplicationsCreateOrUpdateFuture) UnmarshalJSON ¶
func (future *ApplicationsCreateOrUpdateFuture) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaller for CreateFuture.
type ApplicationsDeleteFuture ¶
type ApplicationsDeleteFuture struct { azure.FutureAPI // Result returns the result of the asynchronous operation. // If the operation has not completed it will return an error. Result func(ApplicationsClient) (autorest.Response, error) }
ApplicationsDeleteFuture an abstraction for monitoring and retrieving the results of a long-running operation.
func (*ApplicationsDeleteFuture) UnmarshalJSON ¶
func (future *ApplicationsDeleteFuture) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaller for CreateFuture.
type ApplicationsUpdateFuture ¶
type ApplicationsUpdateFuture struct { azure.FutureAPI // Result returns the result of the asynchronous operation. // If the operation has not completed it will return an error. Result func(ApplicationsClient) (ApplicationResource, error) }
ApplicationsUpdateFuture an abstraction for monitoring and retrieving the results of a long-running operation.
func (*ApplicationsUpdateFuture) UnmarshalJSON ¶
func (future *ApplicationsUpdateFuture) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaller for CreateFuture.
type ArmApplicationHealthPolicy ¶
type ArmApplicationHealthPolicy struct { // ConsiderWarningAsError - Indicates whether warnings are treated with the same severity as errors. ConsiderWarningAsError *bool `json:"considerWarningAsError,omitempty"` // MaxPercentUnhealthyDeployedApplications - The maximum allowed percentage of unhealthy deployed applications. Allowed values are Byte values from zero to 100. // The percentage represents the maximum tolerated percentage of deployed applications that can be unhealthy before the application is considered in error. // This is calculated by dividing the number of unhealthy deployed applications over the number of nodes where the application is currently deployed on in the cluster. // The computation rounds up to tolerate one failure on small numbers of nodes. Default percentage is zero. MaxPercentUnhealthyDeployedApplications *int32 `json:"maxPercentUnhealthyDeployedApplications,omitempty"` // DefaultServiceTypeHealthPolicy - The health policy used by default to evaluate the health of a service type. DefaultServiceTypeHealthPolicy *ArmServiceTypeHealthPolicy `json:"defaultServiceTypeHealthPolicy,omitempty"` // ServiceTypeHealthPolicyMap - The map with service type health policy per service type name. The map is empty by default. ServiceTypeHealthPolicyMap map[string]*ArmServiceTypeHealthPolicy `json:"serviceTypeHealthPolicyMap"` }
ArmApplicationHealthPolicy defines a health policy used to evaluate the health of an application or one of its children entities.
func (ArmApplicationHealthPolicy) MarshalJSON ¶
func (aahp ArmApplicationHealthPolicy) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ArmApplicationHealthPolicy.
type ArmRollingUpgradeMonitoringPolicy ¶
type ArmRollingUpgradeMonitoringPolicy struct { // FailureAction - The activation Mode of the service package. Possible values include: 'ArmUpgradeFailureActionRollback', 'ArmUpgradeFailureActionManual' FailureAction ArmUpgradeFailureAction `json:"failureAction,omitempty"` HealthCheckWaitDuration *string `json:"healthCheckWaitDuration,omitempty"` HealthCheckStableDuration *string `json:"healthCheckStableDuration,omitempty"` HealthCheckRetryTimeout *string `json:"healthCheckRetryTimeout,omitempty"` UpgradeTimeout *string `json:"upgradeTimeout,omitempty"` UpgradeDomainTimeout *string `json:"upgradeDomainTimeout,omitempty"` }
ArmRollingUpgradeMonitoringPolicy the policy used for monitoring the application upgrade
type ArmServicePackageActivationMode ¶
type ArmServicePackageActivationMode string
ArmServicePackageActivationMode enumerates the values for arm service package activation mode.
const ( // ArmServicePackageActivationModeExclusiveProcess Indicates the application package activation mode will // use exclusive process. ArmServicePackageActivationModeExclusiveProcess ArmServicePackageActivationMode = "ExclusiveProcess" // shared process. ArmServicePackageActivationModeSharedProcess ArmServicePackageActivationMode = "SharedProcess" )
func PossibleArmServicePackageActivationModeValues ¶
func PossibleArmServicePackageActivationModeValues() []ArmServicePackageActivationMode
PossibleArmServicePackageActivationModeValues returns an array of possible values for the ArmServicePackageActivationMode const type.
type ArmServiceTypeHealthPolicy ¶
type ArmServiceTypeHealthPolicy struct { // MaxPercentUnhealthyServices - The maximum percentage of services allowed to be unhealthy before your application is considered in error. MaxPercentUnhealthyServices *int32 `json:"maxPercentUnhealthyServices,omitempty"` // MaxPercentUnhealthyPartitionsPerService - The maximum percentage of partitions per service allowed to be unhealthy before your application is considered in error. MaxPercentUnhealthyPartitionsPerService *int32 `json:"maxPercentUnhealthyPartitionsPerService,omitempty"` // MaxPercentUnhealthyReplicasPerPartition - The maximum percentage of replicas per partition allowed to be unhealthy before your application is considered in error. MaxPercentUnhealthyReplicasPerPartition *int32 `json:"maxPercentUnhealthyReplicasPerPartition,omitempty"` }
ArmServiceTypeHealthPolicy represents the health policy used to evaluate the health of services belonging to a service type.
type ArmUpgradeFailureAction ¶
type ArmUpgradeFailureAction string
ArmUpgradeFailureAction enumerates the values for arm upgrade failure action.
const ( // ArmUpgradeFailureActionManual Indicates that a manual repair will need to be performed by the // administrator if the upgrade fails. Service Fabric will not proceed to the next upgrade domain // automatically. ArmUpgradeFailureActionManual ArmUpgradeFailureAction = "Manual" // ArmUpgradeFailureActionRollback Indicates that a rollback of the upgrade will be performed by Service // Fabric if the upgrade fails. ArmUpgradeFailureActionRollback ArmUpgradeFailureAction = "Rollback" )
func PossibleArmUpgradeFailureActionValues ¶
func PossibleArmUpgradeFailureActionValues() []ArmUpgradeFailureAction
PossibleArmUpgradeFailureActionValues returns an array of possible values for the ArmUpgradeFailureAction const type.
type AvailableOperationDisplay ¶
type AvailableOperationDisplay struct { // Provider - The name of the provider. Provider *string `json:"provider,omitempty"` // Resource - The resource on which the operation is performed Resource *string `json:"resource,omitempty"` // Operation - The operation that can be performed. Operation *string `json:"operation,omitempty"` // Description - Operation description Description *string `json:"description,omitempty"` }
AvailableOperationDisplay operation supported by the Service Fabric resource provider
type AzureActiveDirectory ¶
type AzureActiveDirectory struct { // TenantID - Azure active directory tenant id. TenantID *string `json:"tenantId,omitempty"` // ClusterApplication - Azure active directory cluster application id. ClusterApplication *string `json:"clusterApplication,omitempty"` // ClientApplication - Azure active directory client application id. ClientApplication *string `json:"clientApplication,omitempty"` }
AzureActiveDirectory the settings to enable AAD authentication on the cluster.
type BaseClient ¶
BaseClient is the base client for Servicefabric.
func New ¶
func New(subscriptionID string) BaseClient
New creates an instance of the BaseClient client.
func NewWithBaseURI ¶
func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient
NewWithBaseURI creates an instance of the BaseClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
type BasicPartitionSchemeDescription ¶
type BasicPartitionSchemeDescription interface { AsNamedPartitionSchemeDescription() (*NamedPartitionSchemeDescription, bool) AsSingletonPartitionSchemeDescription() (*SingletonPartitionSchemeDescription, bool) AsUniformInt64RangePartitionSchemeDescription() (*UniformInt64RangePartitionSchemeDescription, bool) AsPartitionSchemeDescription() (*PartitionSchemeDescription, bool) }
BasicPartitionSchemeDescription describes how the service is partitioned.
type BasicServicePlacementPolicyDescription ¶
type BasicServicePlacementPolicyDescription interface {
AsServicePlacementPolicyDescription() (*ServicePlacementPolicyDescription, bool)
}
BasicServicePlacementPolicyDescription describes the policy to be used for placement of a Service Fabric service.
type BasicServiceResourceProperties ¶
type BasicServiceResourceProperties interface { AsStatefulServiceProperties() (*StatefulServiceProperties, bool) AsStatelessServiceProperties() (*StatelessServiceProperties, bool) AsServiceResourceProperties() (*ServiceResourceProperties, bool) }
BasicServiceResourceProperties the service resource properties.
type BasicServiceResourceUpdateProperties ¶
type BasicServiceResourceUpdateProperties interface { AsStatefulServiceUpdateProperties() (*StatefulServiceUpdateProperties, bool) AsStatelessServiceUpdateProperties() (*StatelessServiceUpdateProperties, bool) AsServiceResourceUpdateProperties() (*ServiceResourceUpdateProperties, bool) }
BasicServiceResourceUpdateProperties the service resource properties for patch operations.
type CertificateDescription ¶
type CertificateDescription struct { // Thumbprint - Thumbprint of the primary certificate. Thumbprint *string `json:"thumbprint,omitempty"` // ThumbprintSecondary - Thumbprint of the secondary certificate. ThumbprintSecondary *string `json:"thumbprintSecondary,omitempty"` // X509StoreName - Possible values include: 'X509StoreNameAddressBook', 'X509StoreNameAuthRoot', 'X509StoreNameCertificateAuthority', 'X509StoreNameDisallowed', 'X509StoreNameMy', 'X509StoreNameRoot', 'X509StoreNameTrustedPeople', 'X509StoreNameTrustedPublisher' X509StoreName X509StoreName `json:"x509StoreName,omitempty"` }
CertificateDescription describes the certificate details.
type ClientCertificateCommonName ¶
type ClientCertificateCommonName struct { // IsAdmin - Indicates if the client certificate has admin access to the cluster. Non admin clients can perform only read only operations on the cluster. IsAdmin *bool `json:"isAdmin,omitempty"` // CertificateCommonName - The common name of the client certificate. CertificateCommonName *string `json:"certificateCommonName,omitempty"` // CertificateIssuerThumbprint - The issuer thumbprint of the client certificate. CertificateIssuerThumbprint *string `json:"certificateIssuerThumbprint,omitempty"` }
ClientCertificateCommonName describes the client certificate details using common name.
type ClientCertificateThumbprint ¶
type ClientCertificateThumbprint struct { // IsAdmin - Indicates if the client certificate has admin access to the cluster. Non admin clients can perform only read only operations on the cluster. IsAdmin *bool `json:"isAdmin,omitempty"` // CertificateThumbprint - The thumbprint of the client certificate. CertificateThumbprint *string `json:"certificateThumbprint,omitempty"` }
ClientCertificateThumbprint describes the client certificate details using thumbprint.
type Cluster ¶
type Cluster struct { autorest.Response `json:"-"` // ClusterProperties - The cluster resource properties *ClusterProperties `json:"properties,omitempty"` // ID - READ-ONLY; Azure resource identifier. ID *string `json:"id,omitempty"` // Name - READ-ONLY; Azure resource name. Name *string `json:"name,omitempty"` // Type - READ-ONLY; Azure resource type. Type *string `json:"type,omitempty"` // Location - Azure resource location. Location *string `json:"location,omitempty"` // Tags - Azure resource tags. Tags map[string]*string `json:"tags"` // Etag - READ-ONLY; Azure resource etag. Etag *string `json:"etag,omitempty"` SystemData *SystemData `json:"systemData,omitempty"` }
Cluster the cluster resource
func (Cluster) MarshalJSON ¶
MarshalJSON is the custom marshaler for Cluster.
func (*Cluster) UnmarshalJSON ¶
UnmarshalJSON is the custom unmarshaler for Cluster struct.
type ClusterCodeVersionsListResult ¶
type ClusterCodeVersionsListResult struct { autorest.Response `json:"-"` Value *[]ClusterCodeVersionsResult `json:"value,omitempty"` // NextLink - The URL to use for getting the next set of results. NextLink *string `json:"nextLink,omitempty"` }
ClusterCodeVersionsListResult the list results of the Service Fabric runtime versions.
type ClusterCodeVersionsResult ¶
type ClusterCodeVersionsResult struct { // ID - The identification of the result ID *string `json:"id,omitempty"` // Name - The name of the result Name *string `json:"name,omitempty"` // Type - The result resource type Type *string `json:"type,omitempty"` *ClusterVersionDetails `json:"properties,omitempty"` }
ClusterCodeVersionsResult the result of the Service Fabric runtime versions
func (ClusterCodeVersionsResult) MarshalJSON ¶
func (ccvr ClusterCodeVersionsResult) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ClusterCodeVersionsResult.
func (*ClusterCodeVersionsResult) UnmarshalJSON ¶
func (ccvr *ClusterCodeVersionsResult) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for ClusterCodeVersionsResult struct.
type ClusterHealthPolicy ¶
type ClusterHealthPolicy struct { // MaxPercentUnhealthyNodes - The maximum allowed percentage of unhealthy nodes before reporting an error. For example, to allow 10% of nodes to be unhealthy, this value would be 10. // The percentage represents the maximum tolerated percentage of nodes that can be unhealthy before the cluster is considered in error. // If the percentage is respected but there is at least one unhealthy node, the health is evaluated as Warning. // The percentage is calculated by dividing the number of unhealthy nodes over the total number of nodes in the cluster. // The computation rounds up to tolerate one failure on small numbers of nodes. Default percentage is zero. // In large clusters, some nodes will always be down or out for repairs, so this percentage should be configured to tolerate that. MaxPercentUnhealthyNodes *int32 `json:"maxPercentUnhealthyNodes,omitempty"` // MaxPercentUnhealthyApplications - The maximum allowed percentage of unhealthy applications before reporting an error. For example, to allow 10% of applications to be unhealthy, this value would be 10. // The percentage represents the maximum tolerated percentage of applications that can be unhealthy before the cluster is considered in error. // If the percentage is respected but there is at least one unhealthy application, the health is evaluated as Warning. // This is calculated by dividing the number of unhealthy applications over the total number of application instances in the cluster, excluding applications of application types that are included in the ApplicationTypeHealthPolicyMap. // The computation rounds up to tolerate one failure on small numbers of applications. Default percentage is zero. MaxPercentUnhealthyApplications *int32 `json:"maxPercentUnhealthyApplications,omitempty"` // ApplicationHealthPolicies - Defines the application health policy map used to evaluate the health of an application or one of its children entities. ApplicationHealthPolicies map[string]*ApplicationHealthPolicy `json:"applicationHealthPolicies"` }
ClusterHealthPolicy defines a health policy used to evaluate the health of the cluster or of a cluster node.
func (ClusterHealthPolicy) MarshalJSON ¶
func (chp ClusterHealthPolicy) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ClusterHealthPolicy.
type ClusterListResult ¶
type ClusterListResult struct { autorest.Response `json:"-"` Value *[]Cluster `json:"value,omitempty"` // NextLink - The URL to use for getting the next set of results. NextLink *string `json:"nextLink,omitempty"` }
ClusterListResult cluster list results
type ClusterProperties ¶
type ClusterProperties struct { // AddOnFeatures - The list of add-on features to enable in the cluster. AddOnFeatures *[]string `json:"addOnFeatures,omitempty"` // AvailableClusterVersions - READ-ONLY; The Service Fabric runtime versions available for this cluster. AvailableClusterVersions *[]ClusterVersionDetails `json:"availableClusterVersions,omitempty"` // AzureActiveDirectory - The AAD authentication settings of the cluster. AzureActiveDirectory *AzureActiveDirectory `json:"azureActiveDirectory,omitempty"` // Certificate - The certificate to use for securing the cluster. The certificate provided will be used for node to node security within the cluster, SSL certificate for cluster management endpoint and default admin client. Certificate *CertificateDescription `json:"certificate,omitempty"` CertificateCommonNames *ServerCertificateCommonNames `json:"certificateCommonNames,omitempty"` // ClientCertificateCommonNames - The list of client certificates referenced by common name that are allowed to manage the cluster. ClientCertificateCommonNames *[]ClientCertificateCommonName `json:"clientCertificateCommonNames,omitempty"` // ClientCertificateThumbprints - The list of client certificates referenced by thumbprint that are allowed to manage the cluster. ClientCertificateThumbprints *[]ClientCertificateThumbprint `json:"clientCertificateThumbprints,omitempty"` // ClusterCodeVersion - The Service Fabric runtime version of the cluster. This property can only by set the user when **upgradeMode** is set to 'Manual'. To get list of available Service Fabric versions for new clusters use [ClusterVersion API](./ClusterVersion.md). To get the list of available version for existing clusters use **availableClusterVersions**. ClusterCodeVersion *string `json:"clusterCodeVersion,omitempty"` // ClusterEndpoint - READ-ONLY; The Azure Resource Provider endpoint. A system service in the cluster connects to this endpoint. ClusterEndpoint *string `json:"clusterEndpoint,omitempty"` // ClusterID - READ-ONLY; A service generated unique identifier for the cluster resource. ClusterID *string `json:"clusterId,omitempty"` // ClusterState - READ-ONLY; Possible values include: 'ClusterStateWaitingForNodes', 'ClusterStateDeploying', 'ClusterStateBaselineUpgrade', 'ClusterStateUpdatingUserConfiguration', 'ClusterStateUpdatingUserCertificate', 'ClusterStateUpdatingInfrastructure', 'ClusterStateEnforcingClusterVersion', 'ClusterStateUpgradeServiceUnreachable', 'ClusterStateAutoScale', 'ClusterStateReady' ClusterState ClusterState `json:"clusterState,omitempty"` // DiagnosticsStorageAccountConfig - The storage account information for storing Service Fabric diagnostic logs. DiagnosticsStorageAccountConfig *DiagnosticsStorageAccountConfig `json:"diagnosticsStorageAccountConfig,omitempty"` // EventStoreServiceEnabled - Indicates if the event store service is enabled. EventStoreServiceEnabled *bool `json:"eventStoreServiceEnabled,omitempty"` // FabricSettings - The list of custom fabric settings to configure the cluster. FabricSettings *[]SettingsSectionDescription `json:"fabricSettings,omitempty"` // ManagementEndpoint - The http management endpoint of the cluster. ManagementEndpoint *string `json:"managementEndpoint,omitempty"` // NodeTypes - The list of node types in the cluster. NodeTypes *[]NodeTypeDescription `json:"nodeTypes,omitempty"` // ProvisioningState - READ-ONLY; The provisioning state of the cluster resource. Possible values include: 'ProvisioningStateUpdating', 'ProvisioningStateSucceeded', 'ProvisioningStateFailed', 'ProvisioningStateCanceled' ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` // ReliabilityLevel - Possible values include: 'ReliabilityLevelNone', 'ReliabilityLevelBronze', 'ReliabilityLevelSilver', 'ReliabilityLevelGold', 'ReliabilityLevelPlatinum' ReliabilityLevel ReliabilityLevel `json:"reliabilityLevel,omitempty"` // ReverseProxyCertificate - The server certificate used by reverse proxy. ReverseProxyCertificate *CertificateDescription `json:"reverseProxyCertificate,omitempty"` ReverseProxyCertificateCommonNames *ServerCertificateCommonNames `json:"reverseProxyCertificateCommonNames,omitempty"` // UpgradeDescription - The policy to use when upgrading the cluster. UpgradeDescription *ClusterUpgradePolicy `json:"upgradeDescription,omitempty"` // UpgradeMode - Possible values include: 'UpgradeModeAutomatic', 'UpgradeModeManual' UpgradeMode UpgradeMode `json:"upgradeMode,omitempty"` // ApplicationTypeVersionsCleanupPolicy - The policy used to clean up unused versions. ApplicationTypeVersionsCleanupPolicy *ApplicationTypeVersionsCleanupPolicy `json:"applicationTypeVersionsCleanupPolicy,omitempty"` // VMImage - The VM image VMSS has been configured with. Generic names such as Windows or Linux can be used. VMImage *string `json:"vmImage,omitempty"` // SfZonalUpgradeMode - Possible values include: 'SfZonalUpgradeModeParallel', 'SfZonalUpgradeModeHierarchical' SfZonalUpgradeMode SfZonalUpgradeMode `json:"sfZonalUpgradeMode,omitempty"` // VmssZonalUpgradeMode - Possible values include: 'VmssZonalUpgradeModeParallel', 'VmssZonalUpgradeModeHierarchical' VmssZonalUpgradeMode VmssZonalUpgradeMode `json:"vmssZonalUpgradeMode,omitempty"` // InfrastructureServiceManager - Indicates if infrastructure service manager is enabled. InfrastructureServiceManager *bool `json:"infrastructureServiceManager,omitempty"` // UpgradeWave - Indicates when new cluster runtime version upgrades will be applied after they are released. By default is Wave0. Only applies when **upgradeMode** is set to 'Automatic'. Possible values include: 'ClusterUpgradeCadenceWave0', 'ClusterUpgradeCadenceWave1', 'ClusterUpgradeCadenceWave2' UpgradeWave ClusterUpgradeCadence `json:"upgradeWave,omitempty"` // UpgradePauseStartTimestampUtc - Indicates the start date and time to pause automatic runtime version upgrades on the cluster for an specific period of time on the cluster (UTC). UpgradePauseStartTimestampUtc *date.Time `json:"upgradePauseStartTimestampUtc,omitempty"` // UpgradePauseEndTimestampUtc - Indicates the end date and time to pause automatic runtime version upgrades on the cluster for an specific period of time on the cluster (UTC). UpgradePauseEndTimestampUtc *date.Time `json:"upgradePauseEndTimestampUtc,omitempty"` // WaveUpgradePaused - Boolean to pause automatic runtime version upgrades to the cluster. WaveUpgradePaused *bool `json:"waveUpgradePaused,omitempty"` // Notifications - Indicates a list of notification channels for cluster events. Notifications *[]Notification `json:"notifications,omitempty"` }
ClusterProperties describes the cluster resource properties.
func (ClusterProperties) MarshalJSON ¶
func (cp ClusterProperties) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ClusterProperties.
type ClusterPropertiesUpdateParameters ¶
type ClusterPropertiesUpdateParameters struct { // AddOnFeatures - The list of add-on features to enable in the cluster. AddOnFeatures *[]string `json:"addOnFeatures,omitempty"` // Certificate - The certificate to use for securing the cluster. The certificate provided will be used for node to node security within the cluster, SSL certificate for cluster management endpoint and default admin client. Certificate *CertificateDescription `json:"certificate,omitempty"` CertificateCommonNames *ServerCertificateCommonNames `json:"certificateCommonNames,omitempty"` // ClientCertificateCommonNames - The list of client certificates referenced by common name that are allowed to manage the cluster. This will overwrite the existing list. ClientCertificateCommonNames *[]ClientCertificateCommonName `json:"clientCertificateCommonNames,omitempty"` // ClientCertificateThumbprints - The list of client certificates referenced by thumbprint that are allowed to manage the cluster. This will overwrite the existing list. ClientCertificateThumbprints *[]ClientCertificateThumbprint `json:"clientCertificateThumbprints,omitempty"` // ClusterCodeVersion - The Service Fabric runtime version of the cluster. This property can only by set the user when **upgradeMode** is set to 'Manual'. To get list of available Service Fabric versions for new clusters use [ClusterVersion API](./ClusterVersion.md). To get the list of available version for existing clusters use **availableClusterVersions**. ClusterCodeVersion *string `json:"clusterCodeVersion,omitempty"` // EventStoreServiceEnabled - Indicates if the event store service is enabled. EventStoreServiceEnabled *bool `json:"eventStoreServiceEnabled,omitempty"` // FabricSettings - The list of custom fabric settings to configure the cluster. This will overwrite the existing list. FabricSettings *[]SettingsSectionDescription `json:"fabricSettings,omitempty"` // NodeTypes - The list of node types in the cluster. This will overwrite the existing list. NodeTypes *[]NodeTypeDescription `json:"nodeTypes,omitempty"` // ReliabilityLevel - Possible values include: 'ReliabilityLevel1None', 'ReliabilityLevel1Bronze', 'ReliabilityLevel1Silver', 'ReliabilityLevel1Gold', 'ReliabilityLevel1Platinum' ReliabilityLevel ReliabilityLevel1 `json:"reliabilityLevel,omitempty"` // ReverseProxyCertificate - The server certificate used by reverse proxy. ReverseProxyCertificate *CertificateDescription `json:"reverseProxyCertificate,omitempty"` // UpgradeDescription - The policy to use when upgrading the cluster. UpgradeDescription *ClusterUpgradePolicy `json:"upgradeDescription,omitempty"` // ApplicationTypeVersionsCleanupPolicy - The policy used to clean up unused versions. ApplicationTypeVersionsCleanupPolicy *ApplicationTypeVersionsCleanupPolicy `json:"applicationTypeVersionsCleanupPolicy,omitempty"` // UpgradeMode - Possible values include: 'UpgradeModeAutomatic', 'UpgradeModeManual' UpgradeMode UpgradeMode `json:"upgradeMode,omitempty"` // SfZonalUpgradeMode - Possible values include: 'SfZonalUpgradeModeParallel', 'SfZonalUpgradeModeHierarchical' SfZonalUpgradeMode SfZonalUpgradeMode `json:"sfZonalUpgradeMode,omitempty"` // VmssZonalUpgradeMode - Possible values include: 'VmssZonalUpgradeModeParallel', 'VmssZonalUpgradeModeHierarchical' VmssZonalUpgradeMode VmssZonalUpgradeMode `json:"vmssZonalUpgradeMode,omitempty"` // InfrastructureServiceManager - Indicates if infrastructure service manager is enabled. InfrastructureServiceManager *bool `json:"infrastructureServiceManager,omitempty"` // UpgradeWave - Indicates when new cluster runtime version upgrades will be applied after they are released. By default is Wave0. Only applies when **upgradeMode** is set to 'Automatic'. Possible values include: 'ClusterUpgradeCadenceWave0', 'ClusterUpgradeCadenceWave1', 'ClusterUpgradeCadenceWave2' UpgradeWave ClusterUpgradeCadence `json:"upgradeWave,omitempty"` // UpgradePauseStartTimestampUtc - The start timestamp to pause runtime version upgrades on the cluster (UTC). UpgradePauseStartTimestampUtc *date.Time `json:"upgradePauseStartTimestampUtc,omitempty"` // UpgradePauseEndTimestampUtc - The end timestamp of pause runtime version upgrades on the cluster (UTC). UpgradePauseEndTimestampUtc *date.Time `json:"upgradePauseEndTimestampUtc,omitempty"` // WaveUpgradePaused - Boolean to pause automatic runtime version upgrades to the cluster. WaveUpgradePaused *bool `json:"waveUpgradePaused,omitempty"` // Notifications - Indicates a list of notification channels for cluster events. Notifications *[]Notification `json:"notifications,omitempty"` }
ClusterPropertiesUpdateParameters describes the cluster resource properties that can be updated during PATCH operation.
type ClusterState ¶
type ClusterState string
ClusterState enumerates the values for cluster state.
const ( // ClusterStateAutoScale ... ClusterStateAutoScale ClusterState = "AutoScale" // ClusterStateBaselineUpgrade ... ClusterStateBaselineUpgrade ClusterState = "BaselineUpgrade" // ClusterStateDeploying ... ClusterStateDeploying ClusterState = "Deploying" // ClusterStateEnforcingClusterVersion ... ClusterStateEnforcingClusterVersion ClusterState = "EnforcingClusterVersion" // ClusterStateReady ... ClusterStateReady ClusterState = "Ready" // ClusterStateUpdatingInfrastructure ... ClusterStateUpdatingInfrastructure ClusterState = "UpdatingInfrastructure" // ClusterStateUpdatingUserCertificate ... ClusterStateUpdatingUserCertificate ClusterState = "UpdatingUserCertificate" // ClusterStateUpdatingUserConfiguration ... ClusterStateUpdatingUserConfiguration ClusterState = "UpdatingUserConfiguration" // ClusterStateUpgradeServiceUnreachable ... ClusterStateUpgradeServiceUnreachable ClusterState = "UpgradeServiceUnreachable" // ClusterStateWaitingForNodes ... ClusterStateWaitingForNodes ClusterState = "WaitingForNodes" )
func PossibleClusterStateValues ¶
func PossibleClusterStateValues() []ClusterState
PossibleClusterStateValues returns an array of possible values for the ClusterState const type.
type ClusterUpdateParameters ¶
type ClusterUpdateParameters struct { *ClusterPropertiesUpdateParameters `json:"properties,omitempty"` // Tags - Cluster update parameters Tags map[string]*string `json:"tags"` }
ClusterUpdateParameters cluster update request
func (ClusterUpdateParameters) MarshalJSON ¶
func (cup ClusterUpdateParameters) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ClusterUpdateParameters.
func (*ClusterUpdateParameters) UnmarshalJSON ¶
func (cup *ClusterUpdateParameters) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for ClusterUpdateParameters struct.
type ClusterUpgradeCadence ¶
type ClusterUpgradeCadence string
ClusterUpgradeCadence enumerates the values for cluster upgrade cadence.
const ( // ClusterUpgradeCadenceWave0 Cluster upgrade starts immediately after a new version is rolled out. // Recommended for Test/Dev clusters. ClusterUpgradeCadenceWave0 ClusterUpgradeCadence = "Wave0" // ClusterUpgradeCadenceWave1 Cluster upgrade starts 7 days after a new version is rolled out. Recommended // for Pre-prod clusters. ClusterUpgradeCadenceWave1 ClusterUpgradeCadence = "Wave1" // ClusterUpgradeCadenceWave2 Cluster upgrade starts 14 days after a new version is rolled out. Recommended // for Production clusters. ClusterUpgradeCadenceWave2 ClusterUpgradeCadence = "Wave2" )
func PossibleClusterUpgradeCadenceValues ¶
func PossibleClusterUpgradeCadenceValues() []ClusterUpgradeCadence
PossibleClusterUpgradeCadenceValues returns an array of possible values for the ClusterUpgradeCadence const type.
type ClusterUpgradeDeltaHealthPolicy ¶
type ClusterUpgradeDeltaHealthPolicy struct { // MaxPercentDeltaUnhealthyNodes - The maximum allowed percentage of nodes health degradation allowed during cluster upgrades. // The delta is measured between the state of the nodes at the beginning of upgrade and the state of the nodes at the time of the health evaluation. // The check is performed after every upgrade domain upgrade completion to make sure the global state of the cluster is within tolerated limits. MaxPercentDeltaUnhealthyNodes *int32 `json:"maxPercentDeltaUnhealthyNodes,omitempty"` // MaxPercentUpgradeDomainDeltaUnhealthyNodes - The maximum allowed percentage of upgrade domain nodes health degradation allowed during cluster upgrades. // The delta is measured between the state of the upgrade domain nodes at the beginning of upgrade and the state of the upgrade domain nodes at the time of the health evaluation. // The check is performed after every upgrade domain upgrade completion for all completed upgrade domains to make sure the state of the upgrade domains is within tolerated limits. MaxPercentUpgradeDomainDeltaUnhealthyNodes *int32 `json:"maxPercentUpgradeDomainDeltaUnhealthyNodes,omitempty"` // MaxPercentDeltaUnhealthyApplications - The maximum allowed percentage of applications health degradation allowed during cluster upgrades. // The delta is measured between the state of the applications at the beginning of upgrade and the state of the applications at the time of the health evaluation. // The check is performed after every upgrade domain upgrade completion to make sure the global state of the cluster is within tolerated limits. System services are not included in this. MaxPercentDeltaUnhealthyApplications *int32 `json:"maxPercentDeltaUnhealthyApplications,omitempty"` // ApplicationDeltaHealthPolicies - Defines the application delta health policy map used to evaluate the health of an application or one of its child entities when upgrading the cluster. ApplicationDeltaHealthPolicies map[string]*ApplicationDeltaHealthPolicy `json:"applicationDeltaHealthPolicies"` }
ClusterUpgradeDeltaHealthPolicy describes the delta health policies for the cluster upgrade.
func (ClusterUpgradeDeltaHealthPolicy) MarshalJSON ¶
func (cudhp ClusterUpgradeDeltaHealthPolicy) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ClusterUpgradeDeltaHealthPolicy.
type ClusterUpgradePolicy ¶
type ClusterUpgradePolicy struct { // ForceRestart - If true, then processes are forcefully restarted during upgrade even when the code version has not changed (the upgrade only changes configuration or data). ForceRestart *bool `json:"forceRestart,omitempty"` // UpgradeReplicaSetCheckTimeout - The maximum amount of time to block processing of an upgrade domain and prevent loss of availability when there are unexpected issues. When this timeout expires, processing of the upgrade domain will proceed regardless of availability loss issues. The timeout is reset at the start of each upgrade domain. The timeout can be in either hh:mm:ss or in d.hh:mm:ss.ms format. UpgradeReplicaSetCheckTimeout *string `json:"upgradeReplicaSetCheckTimeout,omitempty"` // HealthCheckWaitDuration - The length of time to wait after completing an upgrade domain before performing health checks. The duration can be in either hh:mm:ss or in d.hh:mm:ss.ms format. HealthCheckWaitDuration *string `json:"healthCheckWaitDuration,omitempty"` // HealthCheckStableDuration - The amount of time that the application or cluster must remain healthy before the upgrade proceeds to the next upgrade domain. The duration can be in either hh:mm:ss or in d.hh:mm:ss.ms format. HealthCheckStableDuration *string `json:"healthCheckStableDuration,omitempty"` // HealthCheckRetryTimeout - The amount of time to retry health evaluation when the application or cluster is unhealthy before the upgrade rolls back. The timeout can be in either hh:mm:ss or in d.hh:mm:ss.ms format. HealthCheckRetryTimeout *string `json:"healthCheckRetryTimeout,omitempty"` // UpgradeTimeout - The amount of time the overall upgrade has to complete before the upgrade rolls back. The timeout can be in either hh:mm:ss or in d.hh:mm:ss.ms format. UpgradeTimeout *string `json:"upgradeTimeout,omitempty"` // UpgradeDomainTimeout - The amount of time each upgrade domain has to complete before the upgrade rolls back. The timeout can be in either hh:mm:ss or in d.hh:mm:ss.ms format. UpgradeDomainTimeout *string `json:"upgradeDomainTimeout,omitempty"` // HealthPolicy - The cluster health policy used when upgrading the cluster. HealthPolicy *ClusterHealthPolicy `json:"healthPolicy,omitempty"` // DeltaHealthPolicy - The cluster delta health policy used when upgrading the cluster. DeltaHealthPolicy *ClusterUpgradeDeltaHealthPolicy `json:"deltaHealthPolicy,omitempty"` }
ClusterUpgradePolicy describes the policy used when upgrading the cluster.
type ClusterVersionDetails ¶
type ClusterVersionDetails struct { // CodeVersion - The Service Fabric runtime version of the cluster. CodeVersion *string `json:"codeVersion,omitempty"` // SupportExpiryUtc - The date of expiry of support of the version. SupportExpiryUtc *string `json:"supportExpiryUtc,omitempty"` // Environment - Indicates if this version is for Windows or Linux operating system. Possible values include: 'EnvironmentWindows', 'EnvironmentLinux' Environment Environment `json:"environment,omitempty"` }
ClusterVersionDetails the detail of the Service Fabric runtime version result
type ClusterVersionsClient ¶
type ClusterVersionsClient struct {
BaseClient
}
ClusterVersionsClient is the service Fabric Management Client
func NewClusterVersionsClient ¶
func NewClusterVersionsClient(subscriptionID string) ClusterVersionsClient
NewClusterVersionsClient creates an instance of the ClusterVersionsClient client.
func NewClusterVersionsClientWithBaseURI ¶
func NewClusterVersionsClientWithBaseURI(baseURI string, subscriptionID string) ClusterVersionsClient
NewClusterVersionsClientWithBaseURI creates an instance of the ClusterVersionsClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func (ClusterVersionsClient) Get ¶
func (client ClusterVersionsClient) Get(ctx context.Context, location string, clusterVersion string) (result ClusterCodeVersionsListResult, err error)
Get gets information about an available Service Fabric cluster code version. Parameters: location - the location for the cluster code versions. This is different from cluster location. clusterVersion - the cluster code version.
func (ClusterVersionsClient) GetByEnvironment ¶
func (client ClusterVersionsClient) GetByEnvironment(ctx context.Context, location string, environment string, clusterVersion string) (result ClusterCodeVersionsListResult, err error)
GetByEnvironment gets information about an available Service Fabric cluster code version by environment. Parameters: location - the location for the cluster code versions. This is different from cluster location. environment - the operating system of the cluster. The default means all. clusterVersion - the cluster code version.
func (ClusterVersionsClient) GetByEnvironmentPreparer ¶
func (client ClusterVersionsClient) GetByEnvironmentPreparer(ctx context.Context, location string, environment string, clusterVersion string) (*http.Request, error)
GetByEnvironmentPreparer prepares the GetByEnvironment request.
func (ClusterVersionsClient) GetByEnvironmentResponder ¶
func (client ClusterVersionsClient) GetByEnvironmentResponder(resp *http.Response) (result ClusterCodeVersionsListResult, err error)
GetByEnvironmentResponder handles the response to the GetByEnvironment request. The method always closes the http.Response Body.
func (ClusterVersionsClient) GetByEnvironmentSender ¶
func (client ClusterVersionsClient) GetByEnvironmentSender(req *http.Request) (*http.Response, error)
GetByEnvironmentSender sends the GetByEnvironment request. The method will close the http.Response Body if it receives an error.
func (ClusterVersionsClient) GetPreparer ¶
func (client ClusterVersionsClient) GetPreparer(ctx context.Context, location string, clusterVersion string) (*http.Request, error)
GetPreparer prepares the Get request.
func (ClusterVersionsClient) GetResponder ¶
func (client ClusterVersionsClient) GetResponder(resp *http.Response) (result ClusterCodeVersionsListResult, err error)
GetResponder handles the response to the Get request. The method always closes the http.Response Body.
func (ClusterVersionsClient) GetSender ¶
GetSender sends the Get request. The method will close the http.Response Body if it receives an error.
func (ClusterVersionsClient) List ¶
func (client ClusterVersionsClient) List(ctx context.Context, location string) (result ClusterCodeVersionsListResult, err error)
List gets all available code versions for Service Fabric cluster resources by location. Parameters: location - the location for the cluster code versions. This is different from cluster location.
func (ClusterVersionsClient) ListByEnvironment ¶
func (client ClusterVersionsClient) ListByEnvironment(ctx context.Context, location string, environment string) (result ClusterCodeVersionsListResult, err error)
ListByEnvironment gets all available code versions for Service Fabric cluster resources by environment. Parameters: location - the location for the cluster code versions. This is different from cluster location. environment - the operating system of the cluster. The default means all.
func (ClusterVersionsClient) ListByEnvironmentPreparer ¶
func (client ClusterVersionsClient) ListByEnvironmentPreparer(ctx context.Context, location string, environment string) (*http.Request, error)
ListByEnvironmentPreparer prepares the ListByEnvironment request.
func (ClusterVersionsClient) ListByEnvironmentResponder ¶
func (client ClusterVersionsClient) ListByEnvironmentResponder(resp *http.Response) (result ClusterCodeVersionsListResult, err error)
ListByEnvironmentResponder handles the response to the ListByEnvironment request. The method always closes the http.Response Body.
func (ClusterVersionsClient) ListByEnvironmentSender ¶
func (client ClusterVersionsClient) ListByEnvironmentSender(req *http.Request) (*http.Response, error)
ListByEnvironmentSender sends the ListByEnvironment request. The method will close the http.Response Body if it receives an error.
func (ClusterVersionsClient) ListPreparer ¶
func (client ClusterVersionsClient) ListPreparer(ctx context.Context, location string) (*http.Request, error)
ListPreparer prepares the List request.
func (ClusterVersionsClient) ListResponder ¶
func (client ClusterVersionsClient) ListResponder(resp *http.Response) (result ClusterCodeVersionsListResult, err error)
ListResponder handles the response to the List request. The method always closes the http.Response Body.
func (ClusterVersionsClient) ListSender ¶
ListSender sends the List request. The method will close the http.Response Body if it receives an error.
type ClustersClient ¶
type ClustersClient struct {
BaseClient
}
ClustersClient is the service Fabric Management Client
func NewClustersClient ¶
func NewClustersClient(subscriptionID string) ClustersClient
NewClustersClient creates an instance of the ClustersClient client.
func NewClustersClientWithBaseURI ¶
func NewClustersClientWithBaseURI(baseURI string, subscriptionID string) ClustersClient
NewClustersClientWithBaseURI creates an instance of the ClustersClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func (ClustersClient) CreateOrUpdate ¶
func (client ClustersClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, clusterName string, parameters Cluster) (result ClustersCreateOrUpdateFuture, err error)
CreateOrUpdate create or update a Service Fabric cluster resource with the specified name. Parameters: resourceGroupName - the name of the resource group. clusterName - the name of the cluster resource. parameters - the cluster resource.
func (ClustersClient) CreateOrUpdatePreparer ¶
func (client ClustersClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, clusterName string, parameters Cluster) (*http.Request, error)
CreateOrUpdatePreparer prepares the CreateOrUpdate request.
func (ClustersClient) CreateOrUpdateResponder ¶
func (client ClustersClient) CreateOrUpdateResponder(resp *http.Response) (result Cluster, err error)
CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.
func (ClustersClient) CreateOrUpdateSender ¶
func (client ClustersClient) CreateOrUpdateSender(req *http.Request) (future ClustersCreateOrUpdateFuture, err error)
CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the http.Response Body if it receives an error.
func (ClustersClient) Delete ¶
func (client ClustersClient) Delete(ctx context.Context, resourceGroupName string, clusterName string) (result autorest.Response, err error)
Delete delete a Service Fabric cluster resource with the specified name. Parameters: resourceGroupName - the name of the resource group. clusterName - the name of the cluster resource.
func (ClustersClient) DeletePreparer ¶
func (client ClustersClient) DeletePreparer(ctx context.Context, resourceGroupName string, clusterName string) (*http.Request, error)
DeletePreparer prepares the Delete request.
func (ClustersClient) DeleteResponder ¶
func (client ClustersClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)
DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.
func (ClustersClient) DeleteSender ¶
DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.
func (ClustersClient) Get ¶
func (client ClustersClient) Get(ctx context.Context, resourceGroupName string, clusterName string) (result Cluster, err error)
Get get a Service Fabric cluster resource created or in the process of being created in the specified resource group. Parameters: resourceGroupName - the name of the resource group. clusterName - the name of the cluster resource.
func (ClustersClient) GetPreparer ¶
func (client ClustersClient) GetPreparer(ctx context.Context, resourceGroupName string, clusterName string) (*http.Request, error)
GetPreparer prepares the Get request.
func (ClustersClient) GetResponder ¶
func (client ClustersClient) GetResponder(resp *http.Response) (result Cluster, err error)
GetResponder handles the response to the Get request. The method always closes the http.Response Body.
func (ClustersClient) GetSender ¶
GetSender sends the Get request. The method will close the http.Response Body if it receives an error.
func (ClustersClient) List ¶
func (client ClustersClient) List(ctx context.Context) (result ClusterListResult, err error)
List gets all Service Fabric cluster resources created or in the process of being created in the subscription.
func (ClustersClient) ListByResourceGroup ¶
func (client ClustersClient) ListByResourceGroup(ctx context.Context, resourceGroupName string) (result ClusterListResult, err error)
ListByResourceGroup gets all Service Fabric cluster resources created or in the process of being created in the resource group. Parameters: resourceGroupName - the name of the resource group.
func (ClustersClient) ListByResourceGroupPreparer ¶
func (client ClustersClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error)
ListByResourceGroupPreparer prepares the ListByResourceGroup request.
func (ClustersClient) ListByResourceGroupResponder ¶
func (client ClustersClient) ListByResourceGroupResponder(resp *http.Response) (result ClusterListResult, err error)
ListByResourceGroupResponder handles the response to the ListByResourceGroup request. The method always closes the http.Response Body.
func (ClustersClient) ListByResourceGroupSender ¶
ListByResourceGroupSender sends the ListByResourceGroup request. The method will close the http.Response Body if it receives an error.
func (ClustersClient) ListPreparer ¶
ListPreparer prepares the List request.
func (ClustersClient) ListResponder ¶
func (client ClustersClient) ListResponder(resp *http.Response) (result ClusterListResult, err error)
ListResponder handles the response to the List request. The method always closes the http.Response Body.
func (ClustersClient) ListSender ¶
ListSender sends the List request. The method will close the http.Response Body if it receives an error.
func (ClustersClient) ListUpgradableVersions ¶
func (client ClustersClient) ListUpgradableVersions(ctx context.Context, resourceGroupName string, clusterName string, versionsDescription *UpgradableVersionsDescription) (result UpgradableVersionPathResult, err error)
ListUpgradableVersions if a target is not provided, it will get the minimum and maximum versions available from the current cluster version. If a target is given, it will provide the required path to get from the current cluster version to the target version. Parameters: resourceGroupName - the name of the resource group. clusterName - the name of the cluster resource. versionsDescription - the upgrade path description with target version.
func (ClustersClient) ListUpgradableVersionsPreparer ¶
func (client ClustersClient) ListUpgradableVersionsPreparer(ctx context.Context, resourceGroupName string, clusterName string, versionsDescription *UpgradableVersionsDescription) (*http.Request, error)
ListUpgradableVersionsPreparer prepares the ListUpgradableVersions request.
func (ClustersClient) ListUpgradableVersionsResponder ¶
func (client ClustersClient) ListUpgradableVersionsResponder(resp *http.Response) (result UpgradableVersionPathResult, err error)
ListUpgradableVersionsResponder handles the response to the ListUpgradableVersions request. The method always closes the http.Response Body.
func (ClustersClient) ListUpgradableVersionsSender ¶
func (client ClustersClient) ListUpgradableVersionsSender(req *http.Request) (*http.Response, error)
ListUpgradableVersionsSender sends the ListUpgradableVersions request. The method will close the http.Response Body if it receives an error.
func (ClustersClient) Update ¶
func (client ClustersClient) Update(ctx context.Context, resourceGroupName string, clusterName string, parameters ClusterUpdateParameters) (result ClustersUpdateFuture, err error)
Update update the configuration of a Service Fabric cluster resource with the specified name. Parameters: resourceGroupName - the name of the resource group. clusterName - the name of the cluster resource. parameters - the parameters which contains the property value and property name which used to update the cluster configuration.
func (ClustersClient) UpdatePreparer ¶
func (client ClustersClient) UpdatePreparer(ctx context.Context, resourceGroupName string, clusterName string, parameters ClusterUpdateParameters) (*http.Request, error)
UpdatePreparer prepares the Update request.
func (ClustersClient) UpdateResponder ¶
func (client ClustersClient) UpdateResponder(resp *http.Response) (result Cluster, err error)
UpdateResponder handles the response to the Update request. The method always closes the http.Response Body.
func (ClustersClient) UpdateSender ¶
func (client ClustersClient) UpdateSender(req *http.Request) (future ClustersUpdateFuture, err error)
UpdateSender sends the Update request. The method will close the http.Response Body if it receives an error.
type ClustersCreateOrUpdateFuture ¶
type ClustersCreateOrUpdateFuture struct { azure.FutureAPI // Result returns the result of the asynchronous operation. // If the operation has not completed it will return an error. Result func(ClustersClient) (Cluster, error) }
ClustersCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a long-running operation.
func (*ClustersCreateOrUpdateFuture) UnmarshalJSON ¶
func (future *ClustersCreateOrUpdateFuture) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaller for CreateFuture.
type ClustersUpdateFuture ¶
type ClustersUpdateFuture struct { azure.FutureAPI // Result returns the result of the asynchronous operation. // If the operation has not completed it will return an error. Result func(ClustersClient) (Cluster, error) }
ClustersUpdateFuture an abstraction for monitoring and retrieving the results of a long-running operation.
func (*ClustersUpdateFuture) UnmarshalJSON ¶
func (future *ClustersUpdateFuture) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaller for CreateFuture.
type DiagnosticsStorageAccountConfig ¶
type DiagnosticsStorageAccountConfig struct { // StorageAccountName - The Azure storage account name. StorageAccountName *string `json:"storageAccountName,omitempty"` // ProtectedAccountKeyName - The protected diagnostics storage key name. ProtectedAccountKeyName *string `json:"protectedAccountKeyName,omitempty"` // ProtectedAccountKeyName2 - The secondary protected diagnostics storage key name. If one of the storage account keys is rotated the cluster will fallback to using the other. ProtectedAccountKeyName2 *string `json:"protectedAccountKeyName2,omitempty"` // BlobEndpoint - The blob endpoint of the azure storage account. BlobEndpoint *string `json:"blobEndpoint,omitempty"` // QueueEndpoint - The queue endpoint of the azure storage account. QueueEndpoint *string `json:"queueEndpoint,omitempty"` // TableEndpoint - The table endpoint of the azure storage account. TableEndpoint *string `json:"tableEndpoint,omitempty"` }
DiagnosticsStorageAccountConfig the storage account information for storing Service Fabric diagnostic logs.
type DurabilityLevel ¶
type DurabilityLevel string
DurabilityLevel enumerates the values for durability level.
const ( // DurabilityLevelBronze ... DurabilityLevelBronze DurabilityLevel = "Bronze" // DurabilityLevelGold ... DurabilityLevelGold DurabilityLevel = "Gold" // DurabilityLevelSilver ... DurabilityLevelSilver DurabilityLevel = "Silver" )
func PossibleDurabilityLevelValues ¶
func PossibleDurabilityLevelValues() []DurabilityLevel
PossibleDurabilityLevelValues returns an array of possible values for the DurabilityLevel const type.
type EndpointRangeDescription ¶
type EndpointRangeDescription struct { // StartPort - Starting port of a range of ports StartPort *int32 `json:"startPort,omitempty"` // EndPort - End port of a range of ports EndPort *int32 `json:"endPort,omitempty"` }
EndpointRangeDescription port range details
type Environment ¶
type Environment string
Environment enumerates the values for environment.
const ( // EnvironmentLinux ... EnvironmentLinux Environment = "Linux" // EnvironmentWindows ... EnvironmentWindows Environment = "Windows" )
func PossibleEnvironmentValues ¶
func PossibleEnvironmentValues() []Environment
PossibleEnvironmentValues returns an array of possible values for the Environment const type.
type ErrorModel ¶
type ErrorModel struct {
Error *ErrorModelError `json:"error,omitempty"`
}
ErrorModel the structure of the error.
type ErrorModelError ¶
type ErrorModelError struct { // Code - The error code. Code *string `json:"code,omitempty"` // Message - The error message. Message *string `json:"message,omitempty"` }
ErrorModelError the error details.
type ManagedIdentity ¶
type ManagedIdentity struct { // PrincipalID - READ-ONLY; The principal id of the managed identity. This property will only be provided for a system assigned identity. PrincipalID *string `json:"principalId,omitempty"` // TenantID - READ-ONLY; The tenant id of the managed identity. This property will only be provided for a system assigned identity. TenantID *string `json:"tenantId,omitempty"` // Type - Possible values include: 'ManagedIdentityTypeSystemAssigned', 'ManagedIdentityTypeUserAssigned', 'ManagedIdentityTypeSystemAssignedUserAssigned', 'ManagedIdentityTypeNone' Type ManagedIdentityType `json:"type,omitempty"` UserAssignedIdentities map[string]*UserAssignedIdentity `json:"userAssignedIdentities"` }
ManagedIdentity describes the managed identities for an Azure resource.
func (ManagedIdentity) MarshalJSON ¶
func (mi ManagedIdentity) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ManagedIdentity.
type ManagedIdentityType ¶
type ManagedIdentityType string
ManagedIdentityType enumerates the values for managed identity type.
const ( // ManagedIdentityTypeNone Indicates that no identity is associated with the resource. ManagedIdentityTypeNone ManagedIdentityType = "None" // ManagedIdentityTypeSystemAssigned Indicates that system assigned identity is associated with the // resource. ManagedIdentityTypeSystemAssigned ManagedIdentityType = "SystemAssigned" // ManagedIdentityTypeSystemAssignedUserAssigned Indicates that both system assigned and user assigned // identity are associated with the resource. ManagedIdentityTypeSystemAssignedUserAssigned ManagedIdentityType = "SystemAssigned, UserAssigned" // ManagedIdentityTypeUserAssigned Indicates that user assigned identity is associated with the resource. ManagedIdentityTypeUserAssigned ManagedIdentityType = "UserAssigned" )
func PossibleManagedIdentityTypeValues ¶
func PossibleManagedIdentityTypeValues() []ManagedIdentityType
PossibleManagedIdentityTypeValues returns an array of possible values for the ManagedIdentityType const type.
type MoveCost ¶
type MoveCost string
MoveCost enumerates the values for move cost.
const ( // MoveCostHigh Specifies the move cost of the service as High. The value is 3. MoveCostHigh MoveCost = "High" // MoveCostLow Specifies the move cost of the service as Low. The value is 1. MoveCostLow MoveCost = "Low" // MoveCostMedium Specifies the move cost of the service as Medium. The value is 2. MoveCostMedium MoveCost = "Medium" // MoveCostZero Zero move cost. This value is zero. MoveCostZero MoveCost = "Zero" )
func PossibleMoveCostValues ¶
func PossibleMoveCostValues() []MoveCost
PossibleMoveCostValues returns an array of possible values for the MoveCost const type.
type NamedPartitionSchemeDescription ¶
type NamedPartitionSchemeDescription struct { // Count - The number of partitions. Count *int32 `json:"count,omitempty"` // Names - Array of size specified by the ‘count’ parameter, for the names of the partitions. Names *[]string `json:"names,omitempty"` // PartitionScheme - Possible values include: 'PartitionSchemeBasicPartitionSchemeDescriptionPartitionSchemePartitionSchemeDescription', 'PartitionSchemeBasicPartitionSchemeDescriptionPartitionSchemeNamed', 'PartitionSchemeBasicPartitionSchemeDescriptionPartitionSchemeSingleton', 'PartitionSchemeBasicPartitionSchemeDescriptionPartitionSchemeUniformInt64Range' PartitionScheme PartitionSchemeBasicPartitionSchemeDescription `json:"partitionScheme,omitempty"` }
NamedPartitionSchemeDescription describes the named partition scheme of the service.
func (NamedPartitionSchemeDescription) AsBasicPartitionSchemeDescription ¶
func (npsd NamedPartitionSchemeDescription) AsBasicPartitionSchemeDescription() (BasicPartitionSchemeDescription, bool)
AsBasicPartitionSchemeDescription is the BasicPartitionSchemeDescription implementation for NamedPartitionSchemeDescription.
func (NamedPartitionSchemeDescription) AsNamedPartitionSchemeDescription ¶
func (npsd NamedPartitionSchemeDescription) AsNamedPartitionSchemeDescription() (*NamedPartitionSchemeDescription, bool)
AsNamedPartitionSchemeDescription is the BasicPartitionSchemeDescription implementation for NamedPartitionSchemeDescription.
func (NamedPartitionSchemeDescription) AsPartitionSchemeDescription ¶
func (npsd NamedPartitionSchemeDescription) AsPartitionSchemeDescription() (*PartitionSchemeDescription, bool)
AsPartitionSchemeDescription is the BasicPartitionSchemeDescription implementation for NamedPartitionSchemeDescription.
func (NamedPartitionSchemeDescription) AsSingletonPartitionSchemeDescription ¶
func (npsd NamedPartitionSchemeDescription) AsSingletonPartitionSchemeDescription() (*SingletonPartitionSchemeDescription, bool)
AsSingletonPartitionSchemeDescription is the BasicPartitionSchemeDescription implementation for NamedPartitionSchemeDescription.
func (NamedPartitionSchemeDescription) AsUniformInt64RangePartitionSchemeDescription ¶
func (npsd NamedPartitionSchemeDescription) AsUniformInt64RangePartitionSchemeDescription() (*UniformInt64RangePartitionSchemeDescription, bool)
AsUniformInt64RangePartitionSchemeDescription is the BasicPartitionSchemeDescription implementation for NamedPartitionSchemeDescription.
func (NamedPartitionSchemeDescription) MarshalJSON ¶
func (npsd NamedPartitionSchemeDescription) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for NamedPartitionSchemeDescription.
type NodeTypeDescription ¶
type NodeTypeDescription struct { // Name - The name of the node type. Name *string `json:"name,omitempty"` // PlacementProperties - The placement tags applied to nodes in the node type, which can be used to indicate where certain services (workload) should run. PlacementProperties map[string]*string `json:"placementProperties"` // Capacities - The capacity tags applied to the nodes in the node type, the cluster resource manager uses these tags to understand how much resource a node has. Capacities map[string]*string `json:"capacities"` // ClientConnectionEndpointPort - The TCP cluster management endpoint port. ClientConnectionEndpointPort *int32 `json:"clientConnectionEndpointPort,omitempty"` // HTTPGatewayEndpointPort - The HTTP cluster management endpoint port. HTTPGatewayEndpointPort *int32 `json:"httpGatewayEndpointPort,omitempty"` // DurabilityLevel - Possible values include: 'DurabilityLevelBronze', 'DurabilityLevelSilver', 'DurabilityLevelGold' DurabilityLevel DurabilityLevel `json:"durabilityLevel,omitempty"` // ApplicationPorts - The range of ports from which cluster assigned port to Service Fabric applications. ApplicationPorts *EndpointRangeDescription `json:"applicationPorts,omitempty"` // EphemeralPorts - The range of ephemeral ports that nodes in this node type should be configured with. EphemeralPorts *EndpointRangeDescription `json:"ephemeralPorts,omitempty"` // IsPrimary - The node type on which system services will run. Only one node type should be marked as primary. Primary node type cannot be deleted or changed for existing clusters. IsPrimary *bool `json:"isPrimary,omitempty"` // VMInstanceCount - VMInstanceCount should be 1 to n, where n indicates the number of VM instances corresponding to this nodeType. VMInstanceCount = 0 can be done only in these scenarios: NodeType is a secondary nodeType. Durability = Bronze or Durability >= Bronze and InfrastructureServiceManager = true. If VMInstanceCount = 0, implies the VMs for this nodeType will not be used for the initial cluster size computation. VMInstanceCount *int32 `json:"vmInstanceCount,omitempty"` // ReverseProxyEndpointPort - The endpoint used by reverse proxy. ReverseProxyEndpointPort *int32 `json:"reverseProxyEndpointPort,omitempty"` // IsStateless - Indicates if the node type can only host Stateless workloads. IsStateless *bool `json:"isStateless,omitempty"` // MultipleAvailabilityZones - Indicates if the node type is enabled to support multiple zones. MultipleAvailabilityZones *bool `json:"multipleAvailabilityZones,omitempty"` }
NodeTypeDescription describes a node type in the cluster, each node type represents sub set of nodes in the cluster.
func (NodeTypeDescription) MarshalJSON ¶
func (ntd NodeTypeDescription) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for NodeTypeDescription.
type Notification ¶
type Notification struct { // IsEnabled - Indicates if the notification is enabled. IsEnabled *bool `json:"isEnabled,omitempty"` // NotificationCategory - The category of notification. NotificationCategory *string `json:"notificationCategory,omitempty"` // NotificationLevel - The level of notification. Possible values include: 'NotificationLevelCritical', 'NotificationLevelAll' NotificationLevel NotificationLevel `json:"notificationLevel,omitempty"` // NotificationTargets - List of targets that subscribe to the notification. NotificationTargets *[]NotificationTarget `json:"notificationTargets,omitempty"` }
Notification describes the notification channel for cluster events.
type NotificationChannel ¶
type NotificationChannel string
NotificationChannel enumerates the values for notification channel.
const ( // NotificationChannelEmailSubscription For subscription receivers. In this case, the parameter receivers // should be a list of roles of the subscription for the cluster (eg. Owner, AccountAdmin, etc) that will // receive the notifications. NotificationChannelEmailSubscription NotificationChannel = "EmailSubscription" // NotificationChannelEmailUser For email user receivers. In this case, the parameter receivers should be a // list of email addresses that will receive the notifications. NotificationChannelEmailUser NotificationChannel = "EmailUser" )
func PossibleNotificationChannelValues ¶
func PossibleNotificationChannelValues() []NotificationChannel
PossibleNotificationChannelValues returns an array of possible values for the NotificationChannel const type.
type NotificationLevel ¶
type NotificationLevel string
NotificationLevel enumerates the values for notification level.
const ( // NotificationLevelAll Receive all notifications. NotificationLevelAll NotificationLevel = "All" // NotificationLevelCritical Receive only critical notifications. NotificationLevelCritical NotificationLevel = "Critical" )
func PossibleNotificationLevelValues ¶
func PossibleNotificationLevelValues() []NotificationLevel
PossibleNotificationLevelValues returns an array of possible values for the NotificationLevel const type.
type NotificationTarget ¶
type NotificationTarget struct { // NotificationChannel - The notification channel indicates the type of receivers subscribed to the notification, either user or subscription. Possible values include: 'NotificationChannelEmailUser', 'NotificationChannelEmailSubscription' NotificationChannel NotificationChannel `json:"notificationChannel,omitempty"` // Receivers - List of targets that subscribe to the notification. Receivers *[]string `json:"receivers,omitempty"` }
NotificationTarget describes the notification target properties.
type OperationListResult ¶
type OperationListResult struct { autorest.Response `json:"-"` // Value - List of operations supported by the Service Fabric resource provider. Value *[]OperationResult `json:"value,omitempty"` // NextLink - READ-ONLY; URL to get the next set of operation list results if there are any. NextLink *string `json:"nextLink,omitempty"` }
OperationListResult describes the result of the request to list Service Fabric resource provider operations.
func (OperationListResult) IsEmpty ¶
func (olr OperationListResult) IsEmpty() bool
IsEmpty returns true if the ListResult contains no values.
func (OperationListResult) MarshalJSON ¶
func (olr OperationListResult) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for OperationListResult.
type OperationListResultIterator ¶
type OperationListResultIterator struct {
// contains filtered or unexported fields
}
OperationListResultIterator provides access to a complete listing of OperationResult values.
func NewOperationListResultIterator ¶
func NewOperationListResultIterator(page OperationListResultPage) OperationListResultIterator
Creates a new instance of the OperationListResultIterator type.
func (*OperationListResultIterator) Next ¶
func (iter *OperationListResultIterator) Next() error
Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.
func (*OperationListResultIterator) NextWithContext ¶
func (iter *OperationListResultIterator) NextWithContext(ctx context.Context) (err error)
NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.
func (OperationListResultIterator) NotDone ¶
func (iter OperationListResultIterator) NotDone() bool
NotDone returns true if the enumeration should be started or is not yet complete.
func (OperationListResultIterator) Response ¶
func (iter OperationListResultIterator) Response() OperationListResult
Response returns the raw server response from the last page request.
func (OperationListResultIterator) Value ¶
func (iter OperationListResultIterator) Value() OperationResult
Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.
type OperationListResultPage ¶
type OperationListResultPage struct {
// contains filtered or unexported fields
}
OperationListResultPage contains a page of OperationResult values.
func NewOperationListResultPage ¶
func NewOperationListResultPage(cur OperationListResult, getNextPage func(context.Context, OperationListResult) (OperationListResult, error)) OperationListResultPage
Creates a new instance of the OperationListResultPage type.
func (*OperationListResultPage) Next ¶
func (page *OperationListResultPage) Next() error
Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.
func (*OperationListResultPage) NextWithContext ¶
func (page *OperationListResultPage) NextWithContext(ctx context.Context) (err error)
NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.
func (OperationListResultPage) NotDone ¶
func (page OperationListResultPage) NotDone() bool
NotDone returns true if the page enumeration should be started or is not yet complete.
func (OperationListResultPage) Response ¶
func (page OperationListResultPage) Response() OperationListResult
Response returns the raw server response from the last page request.
func (OperationListResultPage) Values ¶
func (page OperationListResultPage) Values() []OperationResult
Values returns the slice of values for the current page or nil if there are no values.
type OperationResult ¶
type OperationResult struct { // Name - The name of the operation. Name *string `json:"name,omitempty"` // IsDataAction - Indicates whether the operation is a data action IsDataAction *bool `json:"isDataAction,omitempty"` // Display - The object that represents the operation. Display *AvailableOperationDisplay `json:"display,omitempty"` // Origin - Origin result Origin *string `json:"origin,omitempty"` // NextLink - The URL to use for getting the next set of results. NextLink *string `json:"nextLink,omitempty"` }
OperationResult available operation list result
type OperationsClient ¶
type OperationsClient struct {
BaseClient
}
OperationsClient is the service Fabric Management Client
func NewOperationsClient ¶
func NewOperationsClient(subscriptionID string) OperationsClient
NewOperationsClient creates an instance of the OperationsClient client.
func NewOperationsClientWithBaseURI ¶
func NewOperationsClientWithBaseURI(baseURI string, subscriptionID string) OperationsClient
NewOperationsClientWithBaseURI creates an instance of the OperationsClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func (OperationsClient) List ¶
func (client OperationsClient) List(ctx context.Context, APIVersion string) (result OperationListResultPage, err error)
List get the list of available Service Fabric resource provider API operations. Parameters: APIVersion - the version of the Service Fabric resource provider API
func (OperationsClient) ListComplete ¶
func (client OperationsClient) ListComplete(ctx context.Context, APIVersion string) (result OperationListResultIterator, err error)
ListComplete enumerates all values, automatically crossing page boundaries as required.
func (OperationsClient) ListPreparer ¶
func (client OperationsClient) ListPreparer(ctx context.Context, APIVersion string) (*http.Request, error)
ListPreparer prepares the List request.
func (OperationsClient) ListResponder ¶
func (client OperationsClient) ListResponder(resp *http.Response) (result OperationListResult, err error)
ListResponder handles the response to the List request. The method always closes the http.Response Body.
func (OperationsClient) ListSender ¶
ListSender sends the List request. The method will close the http.Response Body if it receives an error.
type PartitionScheme ¶
type PartitionScheme string
PartitionScheme enumerates the values for partition scheme.
const ( // PartitionSchemeInvalid Indicates the partition kind is invalid. All Service Fabric enumerations have the // invalid type. The value is zero. PartitionSchemeInvalid PartitionScheme = "Invalid" // PartitionSchemeNamed Indicates that the partition is based on string names, and is a // NamedPartitionSchemeDescription object. The value is 3 PartitionSchemeNamed PartitionScheme = "Named" // PartitionSchemeSingleton Indicates that the partition is based on string names, and is a // SingletonPartitionSchemeDescription object, The value is 1. PartitionSchemeSingleton PartitionScheme = "Singleton" // PartitionSchemeUniformInt64Range Indicates that the partition is based on Int64 key ranges, and is a // UniformInt64RangePartitionSchemeDescription object. The value is 2. PartitionSchemeUniformInt64Range PartitionScheme = "UniformInt64Range" )
func PossiblePartitionSchemeValues ¶
func PossiblePartitionSchemeValues() []PartitionScheme
PossiblePartitionSchemeValues returns an array of possible values for the PartitionScheme const type.
type PartitionSchemeBasicPartitionSchemeDescription ¶
type PartitionSchemeBasicPartitionSchemeDescription string
PartitionSchemeBasicPartitionSchemeDescription enumerates the values for partition scheme basic partition scheme description.
const ( // PartitionSchemeBasicPartitionSchemeDescriptionPartitionSchemeNamed ... PartitionSchemeBasicPartitionSchemeDescriptionPartitionSchemeNamed PartitionSchemeBasicPartitionSchemeDescription = "Named" // PartitionSchemeBasicPartitionSchemeDescriptionPartitionSchemePartitionSchemeDescription ... PartitionSchemeBasicPartitionSchemeDescriptionPartitionSchemePartitionSchemeDescription PartitionSchemeBasicPartitionSchemeDescription = "PartitionSchemeDescription" // PartitionSchemeBasicPartitionSchemeDescriptionPartitionSchemeSingleton ... PartitionSchemeBasicPartitionSchemeDescriptionPartitionSchemeSingleton PartitionSchemeBasicPartitionSchemeDescription = "Singleton" // PartitionSchemeBasicPartitionSchemeDescriptionPartitionSchemeUniformInt64Range ... PartitionSchemeBasicPartitionSchemeDescriptionPartitionSchemeUniformInt64Range PartitionSchemeBasicPartitionSchemeDescription = "UniformInt64Range" )
func PossiblePartitionSchemeBasicPartitionSchemeDescriptionValues ¶
func PossiblePartitionSchemeBasicPartitionSchemeDescriptionValues() []PartitionSchemeBasicPartitionSchemeDescription
PossiblePartitionSchemeBasicPartitionSchemeDescriptionValues returns an array of possible values for the PartitionSchemeBasicPartitionSchemeDescription const type.
type PartitionSchemeDescription ¶
type PartitionSchemeDescription struct { // PartitionScheme - Possible values include: 'PartitionSchemeBasicPartitionSchemeDescriptionPartitionSchemePartitionSchemeDescription', 'PartitionSchemeBasicPartitionSchemeDescriptionPartitionSchemeNamed', 'PartitionSchemeBasicPartitionSchemeDescriptionPartitionSchemeSingleton', 'PartitionSchemeBasicPartitionSchemeDescriptionPartitionSchemeUniformInt64Range' PartitionScheme PartitionSchemeBasicPartitionSchemeDescription `json:"partitionScheme,omitempty"` }
PartitionSchemeDescription describes how the service is partitioned.
func (PartitionSchemeDescription) AsBasicPartitionSchemeDescription ¶
func (psd PartitionSchemeDescription) AsBasicPartitionSchemeDescription() (BasicPartitionSchemeDescription, bool)
AsBasicPartitionSchemeDescription is the BasicPartitionSchemeDescription implementation for PartitionSchemeDescription.
func (PartitionSchemeDescription) AsNamedPartitionSchemeDescription ¶
func (psd PartitionSchemeDescription) AsNamedPartitionSchemeDescription() (*NamedPartitionSchemeDescription, bool)
AsNamedPartitionSchemeDescription is the BasicPartitionSchemeDescription implementation for PartitionSchemeDescription.
func (PartitionSchemeDescription) AsPartitionSchemeDescription ¶
func (psd PartitionSchemeDescription) AsPartitionSchemeDescription() (*PartitionSchemeDescription, bool)
AsPartitionSchemeDescription is the BasicPartitionSchemeDescription implementation for PartitionSchemeDescription.
func (PartitionSchemeDescription) AsSingletonPartitionSchemeDescription ¶
func (psd PartitionSchemeDescription) AsSingletonPartitionSchemeDescription() (*SingletonPartitionSchemeDescription, bool)
AsSingletonPartitionSchemeDescription is the BasicPartitionSchemeDescription implementation for PartitionSchemeDescription.
func (PartitionSchemeDescription) AsUniformInt64RangePartitionSchemeDescription ¶
func (psd PartitionSchemeDescription) AsUniformInt64RangePartitionSchemeDescription() (*UniformInt64RangePartitionSchemeDescription, bool)
AsUniformInt64RangePartitionSchemeDescription is the BasicPartitionSchemeDescription implementation for PartitionSchemeDescription.
func (PartitionSchemeDescription) MarshalJSON ¶
func (psd PartitionSchemeDescription) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for PartitionSchemeDescription.
type ProvisioningState ¶
type ProvisioningState string
ProvisioningState enumerates the values for provisioning state.
const ( // ProvisioningStateCanceled ... ProvisioningStateCanceled ProvisioningState = "Canceled" // ProvisioningStateFailed ... ProvisioningStateFailed ProvisioningState = "Failed" // ProvisioningStateSucceeded ... ProvisioningStateSucceeded ProvisioningState = "Succeeded" // ProvisioningStateUpdating ... ProvisioningStateUpdating ProvisioningState = "Updating" )
func PossibleProvisioningStateValues ¶
func PossibleProvisioningStateValues() []ProvisioningState
PossibleProvisioningStateValues returns an array of possible values for the ProvisioningState const type.
type ProxyResource ¶
type ProxyResource struct { // ID - READ-ONLY; Azure resource identifier. ID *string `json:"id,omitempty"` // Name - READ-ONLY; Azure resource name. Name *string `json:"name,omitempty"` // Type - READ-ONLY; Azure resource type. Type *string `json:"type,omitempty"` // Location - It will be deprecated in New API, resource location depends on the parent resource. Location *string `json:"location,omitempty"` // Tags - Azure resource tags. Tags map[string]*string `json:"tags"` // Etag - READ-ONLY; Azure resource etag. Etag *string `json:"etag,omitempty"` SystemData *SystemData `json:"systemData,omitempty"` }
ProxyResource the resource model definition for proxy-only resource.
func (ProxyResource) MarshalJSON ¶
func (pr ProxyResource) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ProxyResource.
type ReliabilityLevel ¶
type ReliabilityLevel string
ReliabilityLevel enumerates the values for reliability level.
const ( // ReliabilityLevelBronze ... ReliabilityLevelBronze ReliabilityLevel = "Bronze" // ReliabilityLevelGold ... ReliabilityLevelGold ReliabilityLevel = "Gold" // ReliabilityLevelNone ... ReliabilityLevelNone ReliabilityLevel = "None" // ReliabilityLevelPlatinum ... ReliabilityLevelPlatinum ReliabilityLevel = "Platinum" // ReliabilityLevelSilver ... ReliabilityLevelSilver ReliabilityLevel = "Silver" )
func PossibleReliabilityLevelValues ¶
func PossibleReliabilityLevelValues() []ReliabilityLevel
PossibleReliabilityLevelValues returns an array of possible values for the ReliabilityLevel const type.
type ReliabilityLevel1 ¶
type ReliabilityLevel1 string
ReliabilityLevel1 enumerates the values for reliability level 1.
const ( // ReliabilityLevel1Bronze ... ReliabilityLevel1Bronze ReliabilityLevel1 = "Bronze" // ReliabilityLevel1Gold ... ReliabilityLevel1Gold ReliabilityLevel1 = "Gold" // ReliabilityLevel1None ... ReliabilityLevel1None ReliabilityLevel1 = "None" // ReliabilityLevel1Platinum ... ReliabilityLevel1Platinum ReliabilityLevel1 = "Platinum" // ReliabilityLevel1Silver ... ReliabilityLevel1Silver ReliabilityLevel1 = "Silver" )
func PossibleReliabilityLevel1Values ¶
func PossibleReliabilityLevel1Values() []ReliabilityLevel1
PossibleReliabilityLevel1Values returns an array of possible values for the ReliabilityLevel1 const type.
type Resource ¶
type Resource struct { // ID - READ-ONLY; Azure resource identifier. ID *string `json:"id,omitempty"` // Name - READ-ONLY; Azure resource name. Name *string `json:"name,omitempty"` // Type - READ-ONLY; Azure resource type. Type *string `json:"type,omitempty"` // Location - Azure resource location. Location *string `json:"location,omitempty"` // Tags - Azure resource tags. Tags map[string]*string `json:"tags"` // Etag - READ-ONLY; Azure resource etag. Etag *string `json:"etag,omitempty"` SystemData *SystemData `json:"systemData,omitempty"` }
Resource the resource model definition.
func (Resource) MarshalJSON ¶
MarshalJSON is the custom marshaler for Resource.
type RollingUpgradeMode ¶
type RollingUpgradeMode string
RollingUpgradeMode enumerates the values for rolling upgrade mode.
const ( // RollingUpgradeModeInvalid Indicates the upgrade mode is invalid. All Service Fabric enumerations have // the invalid type. The value is zero. RollingUpgradeModeInvalid RollingUpgradeMode = "Invalid" // RollingUpgradeModeMonitored The upgrade will stop after completing each upgrade domain and automatically // monitor health before proceeding. The value is 3 RollingUpgradeModeMonitored RollingUpgradeMode = "Monitored" // RollingUpgradeModeUnmonitoredAuto The upgrade will proceed automatically without performing any health // monitoring. The value is 1 RollingUpgradeModeUnmonitoredAuto RollingUpgradeMode = "UnmonitoredAuto" // RollingUpgradeModeUnmonitoredManual The upgrade will stop after completing each upgrade domain, giving // the opportunity to manually monitor health before proceeding. The value is 2 RollingUpgradeModeUnmonitoredManual RollingUpgradeMode = "UnmonitoredManual" )
func PossibleRollingUpgradeModeValues ¶
func PossibleRollingUpgradeModeValues() []RollingUpgradeMode
PossibleRollingUpgradeModeValues returns an array of possible values for the RollingUpgradeMode const type.
type ServerCertificateCommonName ¶
type ServerCertificateCommonName struct { // CertificateCommonName - The common name of the server certificate. CertificateCommonName *string `json:"certificateCommonName,omitempty"` // CertificateIssuerThumbprint - The issuer thumbprint of the server certificate. CertificateIssuerThumbprint *string `json:"certificateIssuerThumbprint,omitempty"` }
ServerCertificateCommonName describes the server certificate details using common name.
type ServerCertificateCommonNames ¶
type ServerCertificateCommonNames struct { // CommonNames - The list of server certificates referenced by common name that are used to secure the cluster. CommonNames *[]ServerCertificateCommonName `json:"commonNames,omitempty"` // X509StoreName - Possible values include: 'X509StoreName1AddressBook', 'X509StoreName1AuthRoot', 'X509StoreName1CertificateAuthority', 'X509StoreName1Disallowed', 'X509StoreName1My', 'X509StoreName1Root', 'X509StoreName1TrustedPeople', 'X509StoreName1TrustedPublisher' X509StoreName X509StoreName1 `json:"x509StoreName,omitempty"` }
ServerCertificateCommonNames describes a list of server certificates referenced by common name that are used to secure the cluster.
type ServiceCorrelationDescription ¶
type ServiceCorrelationDescription struct { // Scheme - The ServiceCorrelationScheme which describes the relationship between this service and the service specified via ServiceName. Possible values include: 'ServiceCorrelationSchemeInvalid', 'ServiceCorrelationSchemeAffinity', 'ServiceCorrelationSchemeAlignedAffinity', 'ServiceCorrelationSchemeNonAlignedAffinity' Scheme ServiceCorrelationScheme `json:"scheme,omitempty"` // ServiceName - The name of the service that the correlation relationship is established with. ServiceName *string `json:"serviceName,omitempty"` }
ServiceCorrelationDescription creates a particular correlation between services.
type ServiceCorrelationScheme ¶
type ServiceCorrelationScheme string
ServiceCorrelationScheme enumerates the values for service correlation scheme.
const ( // ServiceCorrelationSchemeAffinity Indicates that this service has an affinity relationship with another // service. Provided for backwards compatibility, consider preferring the Aligned or NonAlignedAffinity // options. The value is 1. ServiceCorrelationSchemeAffinity ServiceCorrelationScheme = "Affinity" // ServiceCorrelationSchemeAlignedAffinity Aligned affinity ensures that the primaries of the partitions of // the affinitized services are collocated on the same nodes. This is the default and is the same as // selecting the Affinity scheme. The value is 2. ServiceCorrelationSchemeAlignedAffinity ServiceCorrelationScheme = "AlignedAffinity" // ServiceCorrelationSchemeInvalid An invalid correlation scheme. Cannot be used. The value is zero. ServiceCorrelationSchemeInvalid ServiceCorrelationScheme = "Invalid" // ServiceCorrelationSchemeNonAlignedAffinity Non-Aligned affinity guarantees that all replicas of each // service will be placed on the same nodes. Unlike Aligned Affinity, this does not guarantee that replicas // of particular role will be collocated. The value is 3. ServiceCorrelationSchemeNonAlignedAffinity ServiceCorrelationScheme = "NonAlignedAffinity" )
func PossibleServiceCorrelationSchemeValues ¶
func PossibleServiceCorrelationSchemeValues() []ServiceCorrelationScheme
PossibleServiceCorrelationSchemeValues returns an array of possible values for the ServiceCorrelationScheme const type.
type ServiceKind ¶
type ServiceKind string
ServiceKind enumerates the values for service kind.
const ( // ServiceKindInvalid Indicates the service kind is invalid. All Service Fabric enumerations have the // invalid type. The value is zero. ServiceKindInvalid ServiceKind = "Invalid" // ServiceKindStateful Uses Service Fabric to make its state or part of its state highly available and // reliable. The value is 2. ServiceKindStateful ServiceKind = "Stateful" // ServiceKindStateless Does not use Service Fabric to make its state highly available or reliable. The // value is 1. ServiceKindStateless ServiceKind = "Stateless" )
func PossibleServiceKindValues ¶
func PossibleServiceKindValues() []ServiceKind
PossibleServiceKindValues returns an array of possible values for the ServiceKind const type.
type ServiceKindBasicServiceResourceProperties ¶
type ServiceKindBasicServiceResourceProperties string
ServiceKindBasicServiceResourceProperties enumerates the values for service kind basic service resource properties.
const ( // ServiceKindBasicServiceResourcePropertiesServiceKindServiceResourceProperties ... ServiceKindBasicServiceResourcePropertiesServiceKindServiceResourceProperties ServiceKindBasicServiceResourceProperties = "ServiceResourceProperties" // ServiceKindBasicServiceResourcePropertiesServiceKindStateful ... ServiceKindBasicServiceResourcePropertiesServiceKindStateful ServiceKindBasicServiceResourceProperties = "Stateful" // ServiceKindBasicServiceResourcePropertiesServiceKindStateless ... ServiceKindBasicServiceResourcePropertiesServiceKindStateless ServiceKindBasicServiceResourceProperties = "Stateless" )
func PossibleServiceKindBasicServiceResourcePropertiesValues ¶
func PossibleServiceKindBasicServiceResourcePropertiesValues() []ServiceKindBasicServiceResourceProperties
PossibleServiceKindBasicServiceResourcePropertiesValues returns an array of possible values for the ServiceKindBasicServiceResourceProperties const type.
type ServiceKindBasicServiceResourceUpdateProperties ¶
type ServiceKindBasicServiceResourceUpdateProperties string
ServiceKindBasicServiceResourceUpdateProperties enumerates the values for service kind basic service resource update properties.
const ( // ServiceKindBasicServiceResourceUpdatePropertiesServiceKindServiceResourceUpdateProperties ... ServiceKindBasicServiceResourceUpdatePropertiesServiceKindServiceResourceUpdateProperties ServiceKindBasicServiceResourceUpdateProperties = "ServiceResourceUpdateProperties" // ServiceKindBasicServiceResourceUpdatePropertiesServiceKindStateful ... ServiceKindBasicServiceResourceUpdatePropertiesServiceKindStateful ServiceKindBasicServiceResourceUpdateProperties = "Stateful" // ServiceKindBasicServiceResourceUpdatePropertiesServiceKindStateless ... ServiceKindBasicServiceResourceUpdatePropertiesServiceKindStateless ServiceKindBasicServiceResourceUpdateProperties = "Stateless" )
func PossibleServiceKindBasicServiceResourceUpdatePropertiesValues ¶
func PossibleServiceKindBasicServiceResourceUpdatePropertiesValues() []ServiceKindBasicServiceResourceUpdateProperties
PossibleServiceKindBasicServiceResourceUpdatePropertiesValues returns an array of possible values for the ServiceKindBasicServiceResourceUpdateProperties const type.
type ServiceLoadMetricDescription ¶
type ServiceLoadMetricDescription struct { // Name - The name of the metric. If the service chooses to report load during runtime, the load metric name should match the name that is specified in Name exactly. Note that metric names are case sensitive. Name *string `json:"name,omitempty"` // Weight - The service load metric relative weight, compared to other metrics configured for this service, as a number. Possible values include: 'ServiceLoadMetricWeightZero', 'ServiceLoadMetricWeightLow', 'ServiceLoadMetricWeightMedium', 'ServiceLoadMetricWeightHigh' Weight ServiceLoadMetricWeight `json:"weight,omitempty"` // PrimaryDefaultLoad - Used only for Stateful services. The default amount of load, as a number, that this service creates for this metric when it is a Primary replica. PrimaryDefaultLoad *int32 `json:"primaryDefaultLoad,omitempty"` // SecondaryDefaultLoad - Used only for Stateful services. The default amount of load, as a number, that this service creates for this metric when it is a Secondary replica. SecondaryDefaultLoad *int32 `json:"secondaryDefaultLoad,omitempty"` // DefaultLoad - Used only for Stateless services. The default amount of load, as a number, that this service creates for this metric. DefaultLoad *int32 `json:"defaultLoad,omitempty"` }
ServiceLoadMetricDescription specifies a metric to load balance a service during runtime.
type ServiceLoadMetricWeight ¶
type ServiceLoadMetricWeight string
ServiceLoadMetricWeight enumerates the values for service load metric weight.
const ( // ServiceLoadMetricWeightHigh Specifies the metric weight of the service load as High. The value is 3. ServiceLoadMetricWeightHigh ServiceLoadMetricWeight = "High" // ServiceLoadMetricWeightLow Specifies the metric weight of the service load as Low. The value is 1. ServiceLoadMetricWeightLow ServiceLoadMetricWeight = "Low" // ServiceLoadMetricWeightMedium Specifies the metric weight of the service load as Medium. The value is 2. ServiceLoadMetricWeightMedium ServiceLoadMetricWeight = "Medium" // ServiceLoadMetricWeightZero Disables resource balancing for this metric. This value is zero. ServiceLoadMetricWeightZero ServiceLoadMetricWeight = "Zero" )
func PossibleServiceLoadMetricWeightValues ¶
func PossibleServiceLoadMetricWeightValues() []ServiceLoadMetricWeight
PossibleServiceLoadMetricWeightValues returns an array of possible values for the ServiceLoadMetricWeight const type.
type ServicePlacementPolicyDescription ¶
type ServicePlacementPolicyDescription struct { // Type - Possible values include: 'TypeServicePlacementPolicyDescription' Type Type `json:"type,omitempty"` }
ServicePlacementPolicyDescription describes the policy to be used for placement of a Service Fabric service.
func (ServicePlacementPolicyDescription) AsBasicServicePlacementPolicyDescription ¶
func (sppd ServicePlacementPolicyDescription) AsBasicServicePlacementPolicyDescription() (BasicServicePlacementPolicyDescription, bool)
AsBasicServicePlacementPolicyDescription is the BasicServicePlacementPolicyDescription implementation for ServicePlacementPolicyDescription.
func (ServicePlacementPolicyDescription) AsServicePlacementPolicyDescription ¶
func (sppd ServicePlacementPolicyDescription) AsServicePlacementPolicyDescription() (*ServicePlacementPolicyDescription, bool)
AsServicePlacementPolicyDescription is the BasicServicePlacementPolicyDescription implementation for ServicePlacementPolicyDescription.
func (ServicePlacementPolicyDescription) MarshalJSON ¶
func (sppd ServicePlacementPolicyDescription) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ServicePlacementPolicyDescription.
type ServicePlacementPolicyType ¶
type ServicePlacementPolicyType string
ServicePlacementPolicyType enumerates the values for service placement policy type.
const ( // ServicePlacementPolicyTypeInvalid Indicates the type of the placement policy is invalid. All Service // Fabric enumerations have the invalid type. The value is zero. ServicePlacementPolicyTypeInvalid ServicePlacementPolicyType = "Invalid" // ServicePlacementPolicyTypeInvalidDomain Indicates that the ServicePlacementPolicyDescription is of type // ServicePlacementInvalidDomainPolicyDescription, which indicates that a particular fault or upgrade // domain cannot be used for placement of this service. The value is 1. ServicePlacementPolicyTypeInvalidDomain ServicePlacementPolicyType = "InvalidDomain" // ServicePlacementPolicyTypeNonPartiallyPlaceService Indicates that the ServicePlacementPolicyDescription // is of type ServicePlacementNonPartiallyPlaceServicePolicyDescription, which indicates that if possible // all replicas of a particular partition of the service should be placed atomically. The value is 5. ServicePlacementPolicyTypeNonPartiallyPlaceService ServicePlacementPolicyType = "NonPartiallyPlaceService" // ServicePlacementPolicyTypePreferredPrimaryDomain Indicates that the ServicePlacementPolicyDescription is // of type ServicePlacementPreferPrimaryDomainPolicyDescription, which indicates that if possible the // Primary replica for the partitions of the service should be located in a particular domain as an // optimization. The value is 3. ServicePlacementPolicyTypePreferredPrimaryDomain ServicePlacementPolicyType = "PreferredPrimaryDomain" // ServicePlacementPolicyTypeRequiredDomain Indicates that the ServicePlacementPolicyDescription is of type // ServicePlacementRequireDomainDistributionPolicyDescription indicating that the replicas of the service // must be placed in a specific domain. The value is 2. ServicePlacementPolicyTypeRequiredDomain ServicePlacementPolicyType = "RequiredDomain" // ServicePlacementPolicyTypeRequiredDomainDistribution Indicates that the // ServicePlacementPolicyDescription is of type ServicePlacementRequireDomainDistributionPolicyDescription, // indicating that the system will disallow placement of any two replicas from the same partition in the // same domain at any time. The value is 4. ServicePlacementPolicyTypeRequiredDomainDistribution ServicePlacementPolicyType = "RequiredDomainDistribution" )
func PossibleServicePlacementPolicyTypeValues ¶
func PossibleServicePlacementPolicyTypeValues() []ServicePlacementPolicyType
PossibleServicePlacementPolicyTypeValues returns an array of possible values for the ServicePlacementPolicyType const type.
type ServiceResource ¶
type ServiceResource struct { autorest.Response `json:"-"` BasicServiceResourceProperties `json:"properties,omitempty"` // ID - READ-ONLY; Azure resource identifier. ID *string `json:"id,omitempty"` // Name - READ-ONLY; Azure resource name. Name *string `json:"name,omitempty"` // Type - READ-ONLY; Azure resource type. Type *string `json:"type,omitempty"` // Location - It will be deprecated in New API, resource location depends on the parent resource. Location *string `json:"location,omitempty"` // Tags - Azure resource tags. Tags map[string]*string `json:"tags"` // Etag - READ-ONLY; Azure resource etag. Etag *string `json:"etag,omitempty"` SystemData *SystemData `json:"systemData,omitempty"` }
ServiceResource the service resource.
func (ServiceResource) MarshalJSON ¶
func (sr ServiceResource) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ServiceResource.
func (*ServiceResource) UnmarshalJSON ¶
func (sr *ServiceResource) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for ServiceResource struct.
type ServiceResourceList ¶
type ServiceResourceList struct { autorest.Response `json:"-"` Value *[]ServiceResource `json:"value,omitempty"` // NextLink - READ-ONLY; URL to get the next set of service list results if there are any. NextLink *string `json:"nextLink,omitempty"` }
ServiceResourceList the list of service resources.
func (ServiceResourceList) MarshalJSON ¶
func (srl ServiceResourceList) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ServiceResourceList.
type ServiceResourceProperties ¶
type ServiceResourceProperties struct { // ProvisioningState - READ-ONLY; The current deployment or provisioning state, which only appears in the response ProvisioningState *string `json:"provisioningState,omitempty"` // ServiceTypeName - The name of the service type ServiceTypeName *string `json:"serviceTypeName,omitempty"` PartitionDescription BasicPartitionSchemeDescription `json:"partitionDescription,omitempty"` // ServicePackageActivationMode - The activation Mode of the service package. Possible values include: 'ArmServicePackageActivationModeSharedProcess', 'ArmServicePackageActivationModeExclusiveProcess' ServicePackageActivationMode ArmServicePackageActivationMode `json:"servicePackageActivationMode,omitempty"` // ServiceDNSName - Dns name used for the service. If this is specified, then the service can be accessed via its DNS name instead of service name. ServiceDNSName *string `json:"serviceDnsName,omitempty"` // ServiceKind - Possible values include: 'ServiceKindBasicServiceResourcePropertiesServiceKindServiceResourceProperties', 'ServiceKindBasicServiceResourcePropertiesServiceKindStateful', 'ServiceKindBasicServiceResourcePropertiesServiceKindStateless' ServiceKind ServiceKindBasicServiceResourceProperties `json:"serviceKind,omitempty"` // PlacementConstraints - The placement constraints as a string. Placement constraints are boolean expressions on node properties and allow for restricting a service to particular nodes based on the service requirements. For example, to place a service on nodes where NodeType is blue specify the following: "NodeColor == blue)". PlacementConstraints *string `json:"placementConstraints,omitempty"` CorrelationScheme *[]ServiceCorrelationDescription `json:"correlationScheme,omitempty"` ServiceLoadMetrics *[]ServiceLoadMetricDescription `json:"serviceLoadMetrics,omitempty"` ServicePlacementPolicies *[]BasicServicePlacementPolicyDescription `json:"servicePlacementPolicies,omitempty"` // DefaultMoveCost - Possible values include: 'MoveCostZero', 'MoveCostLow', 'MoveCostMedium', 'MoveCostHigh' DefaultMoveCost MoveCost `json:"defaultMoveCost,omitempty"` }
ServiceResourceProperties the service resource properties.
func (ServiceResourceProperties) AsBasicServiceResourceProperties ¶
func (srp ServiceResourceProperties) AsBasicServiceResourceProperties() (BasicServiceResourceProperties, bool)
AsBasicServiceResourceProperties is the BasicServiceResourceProperties implementation for ServiceResourceProperties.
func (ServiceResourceProperties) AsServiceResourceProperties ¶
func (srp ServiceResourceProperties) AsServiceResourceProperties() (*ServiceResourceProperties, bool)
AsServiceResourceProperties is the BasicServiceResourceProperties implementation for ServiceResourceProperties.
func (ServiceResourceProperties) AsStatefulServiceProperties ¶
func (srp ServiceResourceProperties) AsStatefulServiceProperties() (*StatefulServiceProperties, bool)
AsStatefulServiceProperties is the BasicServiceResourceProperties implementation for ServiceResourceProperties.
func (ServiceResourceProperties) AsStatelessServiceProperties ¶
func (srp ServiceResourceProperties) AsStatelessServiceProperties() (*StatelessServiceProperties, bool)
AsStatelessServiceProperties is the BasicServiceResourceProperties implementation for ServiceResourceProperties.
func (ServiceResourceProperties) MarshalJSON ¶
func (srp ServiceResourceProperties) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ServiceResourceProperties.
func (*ServiceResourceProperties) UnmarshalJSON ¶
func (srp *ServiceResourceProperties) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for ServiceResourceProperties struct.
type ServiceResourcePropertiesBase ¶
type ServiceResourcePropertiesBase struct { // PlacementConstraints - The placement constraints as a string. Placement constraints are boolean expressions on node properties and allow for restricting a service to particular nodes based on the service requirements. For example, to place a service on nodes where NodeType is blue specify the following: "NodeColor == blue)". PlacementConstraints *string `json:"placementConstraints,omitempty"` CorrelationScheme *[]ServiceCorrelationDescription `json:"correlationScheme,omitempty"` ServiceLoadMetrics *[]ServiceLoadMetricDescription `json:"serviceLoadMetrics,omitempty"` ServicePlacementPolicies *[]BasicServicePlacementPolicyDescription `json:"servicePlacementPolicies,omitempty"` // DefaultMoveCost - Possible values include: 'MoveCostZero', 'MoveCostLow', 'MoveCostMedium', 'MoveCostHigh' DefaultMoveCost MoveCost `json:"defaultMoveCost,omitempty"` }
ServiceResourcePropertiesBase the common service resource properties.
func (*ServiceResourcePropertiesBase) UnmarshalJSON ¶
func (srpb *ServiceResourcePropertiesBase) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for ServiceResourcePropertiesBase struct.
type ServiceResourceUpdate ¶
type ServiceResourceUpdate struct { BasicServiceResourceUpdateProperties `json:"properties,omitempty"` // ID - READ-ONLY; Azure resource identifier. ID *string `json:"id,omitempty"` // Name - READ-ONLY; Azure resource name. Name *string `json:"name,omitempty"` // Type - READ-ONLY; Azure resource type. Type *string `json:"type,omitempty"` // Location - It will be deprecated in New API, resource location depends on the parent resource. Location *string `json:"location,omitempty"` // Tags - Azure resource tags. Tags map[string]*string `json:"tags"` // Etag - READ-ONLY; Azure resource etag. Etag *string `json:"etag,omitempty"` SystemData *SystemData `json:"systemData,omitempty"` }
ServiceResourceUpdate the service resource for patch operations.
func (ServiceResourceUpdate) MarshalJSON ¶
func (sru ServiceResourceUpdate) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ServiceResourceUpdate.
func (*ServiceResourceUpdate) UnmarshalJSON ¶
func (sru *ServiceResourceUpdate) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for ServiceResourceUpdate struct.
type ServiceResourceUpdateProperties ¶
type ServiceResourceUpdateProperties struct { // ServiceKind - Possible values include: 'ServiceKindBasicServiceResourceUpdatePropertiesServiceKindServiceResourceUpdateProperties', 'ServiceKindBasicServiceResourceUpdatePropertiesServiceKindStateful', 'ServiceKindBasicServiceResourceUpdatePropertiesServiceKindStateless' ServiceKind ServiceKindBasicServiceResourceUpdateProperties `json:"serviceKind,omitempty"` // PlacementConstraints - The placement constraints as a string. Placement constraints are boolean expressions on node properties and allow for restricting a service to particular nodes based on the service requirements. For example, to place a service on nodes where NodeType is blue specify the following: "NodeColor == blue)". PlacementConstraints *string `json:"placementConstraints,omitempty"` CorrelationScheme *[]ServiceCorrelationDescription `json:"correlationScheme,omitempty"` ServiceLoadMetrics *[]ServiceLoadMetricDescription `json:"serviceLoadMetrics,omitempty"` ServicePlacementPolicies *[]BasicServicePlacementPolicyDescription `json:"servicePlacementPolicies,omitempty"` // DefaultMoveCost - Possible values include: 'MoveCostZero', 'MoveCostLow', 'MoveCostMedium', 'MoveCostHigh' DefaultMoveCost MoveCost `json:"defaultMoveCost,omitempty"` }
ServiceResourceUpdateProperties the service resource properties for patch operations.
func (ServiceResourceUpdateProperties) AsBasicServiceResourceUpdateProperties ¶
func (srup ServiceResourceUpdateProperties) AsBasicServiceResourceUpdateProperties() (BasicServiceResourceUpdateProperties, bool)
AsBasicServiceResourceUpdateProperties is the BasicServiceResourceUpdateProperties implementation for ServiceResourceUpdateProperties.
func (ServiceResourceUpdateProperties) AsServiceResourceUpdateProperties ¶
func (srup ServiceResourceUpdateProperties) AsServiceResourceUpdateProperties() (*ServiceResourceUpdateProperties, bool)
AsServiceResourceUpdateProperties is the BasicServiceResourceUpdateProperties implementation for ServiceResourceUpdateProperties.
func (ServiceResourceUpdateProperties) AsStatefulServiceUpdateProperties ¶
func (srup ServiceResourceUpdateProperties) AsStatefulServiceUpdateProperties() (*StatefulServiceUpdateProperties, bool)
AsStatefulServiceUpdateProperties is the BasicServiceResourceUpdateProperties implementation for ServiceResourceUpdateProperties.
func (ServiceResourceUpdateProperties) AsStatelessServiceUpdateProperties ¶
func (srup ServiceResourceUpdateProperties) AsStatelessServiceUpdateProperties() (*StatelessServiceUpdateProperties, bool)
AsStatelessServiceUpdateProperties is the BasicServiceResourceUpdateProperties implementation for ServiceResourceUpdateProperties.
func (ServiceResourceUpdateProperties) MarshalJSON ¶
func (srup ServiceResourceUpdateProperties) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for ServiceResourceUpdateProperties.
func (*ServiceResourceUpdateProperties) UnmarshalJSON ¶
func (srup *ServiceResourceUpdateProperties) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for ServiceResourceUpdateProperties struct.
type ServiceTypeDeltaHealthPolicy ¶
type ServiceTypeDeltaHealthPolicy struct { // MaxPercentDeltaUnhealthyServices - The maximum allowed percentage of services health degradation allowed during cluster upgrades. // The delta is measured between the state of the services at the beginning of upgrade and the state of the services at the time of the health evaluation. // The check is performed after every upgrade domain upgrade completion to make sure the global state of the cluster is within tolerated limits. MaxPercentDeltaUnhealthyServices *int32 `json:"maxPercentDeltaUnhealthyServices,omitempty"` }
ServiceTypeDeltaHealthPolicy represents the delta health policy used to evaluate the health of services belonging to a service type when upgrading the cluster.
type ServiceTypeHealthPolicy ¶
type ServiceTypeHealthPolicy struct { // MaxPercentUnhealthyServices - The maximum percentage of services allowed to be unhealthy before your application is considered in error. MaxPercentUnhealthyServices *int32 `json:"maxPercentUnhealthyServices,omitempty"` }
ServiceTypeHealthPolicy represents the health policy used to evaluate the health of services belonging to a service type.
type ServicesClient ¶
type ServicesClient struct {
BaseClient
}
ServicesClient is the service Fabric Management Client
func NewServicesClient ¶
func NewServicesClient(subscriptionID string) ServicesClient
NewServicesClient creates an instance of the ServicesClient client.
func NewServicesClientWithBaseURI ¶
func NewServicesClientWithBaseURI(baseURI string, subscriptionID string) ServicesClient
NewServicesClientWithBaseURI creates an instance of the ServicesClient client using a custom endpoint. Use this when interacting with an Azure cloud that uses a non-standard base URI (sovereign clouds, Azure stack).
func (ServicesClient) CreateOrUpdate ¶
func (client ServicesClient) CreateOrUpdate(ctx context.Context, resourceGroupName string, clusterName string, applicationName string, serviceName string, parameters ServiceResource) (result ServicesCreateOrUpdateFuture, err error)
CreateOrUpdate create or update a Service Fabric service resource with the specified name. Parameters: resourceGroupName - the name of the resource group. clusterName - the name of the cluster resource. applicationName - the name of the application resource. serviceName - the name of the service resource in the format of {applicationName}~{serviceName}. parameters - the service resource.
func (ServicesClient) CreateOrUpdatePreparer ¶
func (client ServicesClient) CreateOrUpdatePreparer(ctx context.Context, resourceGroupName string, clusterName string, applicationName string, serviceName string, parameters ServiceResource) (*http.Request, error)
CreateOrUpdatePreparer prepares the CreateOrUpdate request.
func (ServicesClient) CreateOrUpdateResponder ¶
func (client ServicesClient) CreateOrUpdateResponder(resp *http.Response) (result ServiceResource, err error)
CreateOrUpdateResponder handles the response to the CreateOrUpdate request. The method always closes the http.Response Body.
func (ServicesClient) CreateOrUpdateSender ¶
func (client ServicesClient) CreateOrUpdateSender(req *http.Request) (future ServicesCreateOrUpdateFuture, err error)
CreateOrUpdateSender sends the CreateOrUpdate request. The method will close the http.Response Body if it receives an error.
func (ServicesClient) Delete ¶
func (client ServicesClient) Delete(ctx context.Context, resourceGroupName string, clusterName string, applicationName string, serviceName string) (result ServicesDeleteFuture, err error)
Delete delete a Service Fabric service resource with the specified name. Parameters: resourceGroupName - the name of the resource group. clusterName - the name of the cluster resource. applicationName - the name of the application resource. serviceName - the name of the service resource in the format of {applicationName}~{serviceName}.
func (ServicesClient) DeletePreparer ¶
func (client ServicesClient) DeletePreparer(ctx context.Context, resourceGroupName string, clusterName string, applicationName string, serviceName string) (*http.Request, error)
DeletePreparer prepares the Delete request.
func (ServicesClient) DeleteResponder ¶
func (client ServicesClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)
DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.
func (ServicesClient) DeleteSender ¶
func (client ServicesClient) DeleteSender(req *http.Request) (future ServicesDeleteFuture, err error)
DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.
func (ServicesClient) Get ¶
func (client ServicesClient) Get(ctx context.Context, resourceGroupName string, clusterName string, applicationName string, serviceName string) (result ServiceResource, err error)
Get get a Service Fabric service resource created or in the process of being created in the Service Fabric application resource. Parameters: resourceGroupName - the name of the resource group. clusterName - the name of the cluster resource. applicationName - the name of the application resource. serviceName - the name of the service resource in the format of {applicationName}~{serviceName}.
func (ServicesClient) GetPreparer ¶
func (client ServicesClient) GetPreparer(ctx context.Context, resourceGroupName string, clusterName string, applicationName string, serviceName string) (*http.Request, error)
GetPreparer prepares the Get request.
func (ServicesClient) GetResponder ¶
func (client ServicesClient) GetResponder(resp *http.Response) (result ServiceResource, err error)
GetResponder handles the response to the Get request. The method always closes the http.Response Body.
func (ServicesClient) GetSender ¶
GetSender sends the Get request. The method will close the http.Response Body if it receives an error.
func (ServicesClient) List ¶
func (client ServicesClient) List(ctx context.Context, resourceGroupName string, clusterName string, applicationName string) (result ServiceResourceList, err error)
List gets all service resources created or in the process of being created in the Service Fabric application resource. Parameters: resourceGroupName - the name of the resource group. clusterName - the name of the cluster resource. applicationName - the name of the application resource.
func (ServicesClient) ListPreparer ¶
func (client ServicesClient) ListPreparer(ctx context.Context, resourceGroupName string, clusterName string, applicationName string) (*http.Request, error)
ListPreparer prepares the List request.
func (ServicesClient) ListResponder ¶
func (client ServicesClient) ListResponder(resp *http.Response) (result ServiceResourceList, err error)
ListResponder handles the response to the List request. The method always closes the http.Response Body.
func (ServicesClient) ListSender ¶
ListSender sends the List request. The method will close the http.Response Body if it receives an error.
func (ServicesClient) Update ¶
func (client ServicesClient) Update(ctx context.Context, resourceGroupName string, clusterName string, applicationName string, serviceName string, parameters ServiceResourceUpdate) (result ServicesUpdateFuture, err error)
Update update a Service Fabric service resource with the specified name. Parameters: resourceGroupName - the name of the resource group. clusterName - the name of the cluster resource. applicationName - the name of the application resource. serviceName - the name of the service resource in the format of {applicationName}~{serviceName}. parameters - the service resource for patch operations.
func (ServicesClient) UpdatePreparer ¶
func (client ServicesClient) UpdatePreparer(ctx context.Context, resourceGroupName string, clusterName string, applicationName string, serviceName string, parameters ServiceResourceUpdate) (*http.Request, error)
UpdatePreparer prepares the Update request.
func (ServicesClient) UpdateResponder ¶
func (client ServicesClient) UpdateResponder(resp *http.Response) (result ServiceResource, err error)
UpdateResponder handles the response to the Update request. The method always closes the http.Response Body.
func (ServicesClient) UpdateSender ¶
func (client ServicesClient) UpdateSender(req *http.Request) (future ServicesUpdateFuture, err error)
UpdateSender sends the Update request. The method will close the http.Response Body if it receives an error.
type ServicesCreateOrUpdateFuture ¶
type ServicesCreateOrUpdateFuture struct { azure.FutureAPI // Result returns the result of the asynchronous operation. // If the operation has not completed it will return an error. Result func(ServicesClient) (ServiceResource, error) }
ServicesCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a long-running operation.
func (*ServicesCreateOrUpdateFuture) UnmarshalJSON ¶
func (future *ServicesCreateOrUpdateFuture) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaller for CreateFuture.
type ServicesDeleteFuture ¶
type ServicesDeleteFuture struct { azure.FutureAPI // Result returns the result of the asynchronous operation. // If the operation has not completed it will return an error. Result func(ServicesClient) (autorest.Response, error) }
ServicesDeleteFuture an abstraction for monitoring and retrieving the results of a long-running operation.
func (*ServicesDeleteFuture) UnmarshalJSON ¶
func (future *ServicesDeleteFuture) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaller for CreateFuture.
type ServicesUpdateFuture ¶
type ServicesUpdateFuture struct { azure.FutureAPI // Result returns the result of the asynchronous operation. // If the operation has not completed it will return an error. Result func(ServicesClient) (ServiceResource, error) }
ServicesUpdateFuture an abstraction for monitoring and retrieving the results of a long-running operation.
func (*ServicesUpdateFuture) UnmarshalJSON ¶
func (future *ServicesUpdateFuture) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaller for CreateFuture.
type SettingsParameterDescription ¶
type SettingsParameterDescription struct { // Name - The parameter name of fabric setting. Name *string `json:"name,omitempty"` // Value - The parameter value of fabric setting. Value *string `json:"value,omitempty"` }
SettingsParameterDescription describes a parameter in fabric settings of the cluster.
type SettingsSectionDescription ¶
type SettingsSectionDescription struct { // Name - The section name of the fabric settings. Name *string `json:"name,omitempty"` // Parameters - The collection of parameters in the section. Parameters *[]SettingsParameterDescription `json:"parameters,omitempty"` }
SettingsSectionDescription describes a section in the fabric settings of the cluster.
type SfZonalUpgradeMode ¶
type SfZonalUpgradeMode string
SfZonalUpgradeMode enumerates the values for sf zonal upgrade mode.
const ( // SfZonalUpgradeModeHierarchical If this value is omitted or set to Hierarchical, VMs are grouped to // reflect the zonal distribution in up to 15 UDs. Each of the three zones has five UDs. This ensures that // the zones are updated one at a time, moving to next zone only after completing five UDs within the first // zone. This update process is safer for the cluster and the user application. SfZonalUpgradeModeHierarchical SfZonalUpgradeMode = "Hierarchical" // SfZonalUpgradeModeParallel VMs under the node type are grouped into UDs and ignore the zone info in five // UDs. This setting causes UDs across all zones to be upgraded at the same time. This deployment mode is // faster for upgrades, we don't recommend it because it goes against the SDP guidelines, which state that // the updates should be applied to one zone at a time. SfZonalUpgradeModeParallel SfZonalUpgradeMode = "Parallel" )
func PossibleSfZonalUpgradeModeValues ¶
func PossibleSfZonalUpgradeModeValues() []SfZonalUpgradeMode
PossibleSfZonalUpgradeModeValues returns an array of possible values for the SfZonalUpgradeMode const type.
type SingletonPartitionSchemeDescription ¶
type SingletonPartitionSchemeDescription struct { // PartitionScheme - Possible values include: 'PartitionSchemeBasicPartitionSchemeDescriptionPartitionSchemePartitionSchemeDescription', 'PartitionSchemeBasicPartitionSchemeDescriptionPartitionSchemeNamed', 'PartitionSchemeBasicPartitionSchemeDescriptionPartitionSchemeSingleton', 'PartitionSchemeBasicPartitionSchemeDescriptionPartitionSchemeUniformInt64Range' PartitionScheme PartitionSchemeBasicPartitionSchemeDescription `json:"partitionScheme,omitempty"` }
SingletonPartitionSchemeDescription describes the partition scheme of a singleton-partitioned, or non-partitioned service.
func (SingletonPartitionSchemeDescription) AsBasicPartitionSchemeDescription ¶
func (spsd SingletonPartitionSchemeDescription) AsBasicPartitionSchemeDescription() (BasicPartitionSchemeDescription, bool)
AsBasicPartitionSchemeDescription is the BasicPartitionSchemeDescription implementation for SingletonPartitionSchemeDescription.
func (SingletonPartitionSchemeDescription) AsNamedPartitionSchemeDescription ¶
func (spsd SingletonPartitionSchemeDescription) AsNamedPartitionSchemeDescription() (*NamedPartitionSchemeDescription, bool)
AsNamedPartitionSchemeDescription is the BasicPartitionSchemeDescription implementation for SingletonPartitionSchemeDescription.
func (SingletonPartitionSchemeDescription) AsPartitionSchemeDescription ¶
func (spsd SingletonPartitionSchemeDescription) AsPartitionSchemeDescription() (*PartitionSchemeDescription, bool)
AsPartitionSchemeDescription is the BasicPartitionSchemeDescription implementation for SingletonPartitionSchemeDescription.
func (SingletonPartitionSchemeDescription) AsSingletonPartitionSchemeDescription ¶
func (spsd SingletonPartitionSchemeDescription) AsSingletonPartitionSchemeDescription() (*SingletonPartitionSchemeDescription, bool)
AsSingletonPartitionSchemeDescription is the BasicPartitionSchemeDescription implementation for SingletonPartitionSchemeDescription.
func (SingletonPartitionSchemeDescription) AsUniformInt64RangePartitionSchemeDescription ¶
func (spsd SingletonPartitionSchemeDescription) AsUniformInt64RangePartitionSchemeDescription() (*UniformInt64RangePartitionSchemeDescription, bool)
AsUniformInt64RangePartitionSchemeDescription is the BasicPartitionSchemeDescription implementation for SingletonPartitionSchemeDescription.
func (SingletonPartitionSchemeDescription) MarshalJSON ¶
func (spsd SingletonPartitionSchemeDescription) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for SingletonPartitionSchemeDescription.
type StatefulServiceProperties ¶
type StatefulServiceProperties struct { // HasPersistedState - A flag indicating whether this is a persistent service which stores states on the local disk. If it is then the value of this property is true, if not it is false. HasPersistedState *bool `json:"hasPersistedState,omitempty"` // TargetReplicaSetSize - The target replica set size as a number. TargetReplicaSetSize *int32 `json:"targetReplicaSetSize,omitempty"` // MinReplicaSetSize - The minimum replica set size as a number. MinReplicaSetSize *int32 `json:"minReplicaSetSize,omitempty"` // ReplicaRestartWaitDuration - The duration between when a replica goes down and when a new replica is created, represented in ISO 8601 format (hh:mm:ss.s). ReplicaRestartWaitDuration *date.Time `json:"replicaRestartWaitDuration,omitempty"` // QuorumLossWaitDuration - The maximum duration for which a partition is allowed to be in a state of quorum loss, represented in ISO 8601 format (hh:mm:ss.s). QuorumLossWaitDuration *date.Time `json:"quorumLossWaitDuration,omitempty"` // StandByReplicaKeepDuration - The definition on how long StandBy replicas should be maintained before being removed, represented in ISO 8601 format (hh:mm:ss.s). StandByReplicaKeepDuration *date.Time `json:"standByReplicaKeepDuration,omitempty"` // ProvisioningState - READ-ONLY; The current deployment or provisioning state, which only appears in the response ProvisioningState *string `json:"provisioningState,omitempty"` // ServiceTypeName - The name of the service type ServiceTypeName *string `json:"serviceTypeName,omitempty"` PartitionDescription BasicPartitionSchemeDescription `json:"partitionDescription,omitempty"` // ServicePackageActivationMode - The activation Mode of the service package. Possible values include: 'ArmServicePackageActivationModeSharedProcess', 'ArmServicePackageActivationModeExclusiveProcess' ServicePackageActivationMode ArmServicePackageActivationMode `json:"servicePackageActivationMode,omitempty"` // ServiceDNSName - Dns name used for the service. If this is specified, then the service can be accessed via its DNS name instead of service name. ServiceDNSName *string `json:"serviceDnsName,omitempty"` // ServiceKind - Possible values include: 'ServiceKindBasicServiceResourcePropertiesServiceKindServiceResourceProperties', 'ServiceKindBasicServiceResourcePropertiesServiceKindStateful', 'ServiceKindBasicServiceResourcePropertiesServiceKindStateless' ServiceKind ServiceKindBasicServiceResourceProperties `json:"serviceKind,omitempty"` // PlacementConstraints - The placement constraints as a string. Placement constraints are boolean expressions on node properties and allow for restricting a service to particular nodes based on the service requirements. For example, to place a service on nodes where NodeType is blue specify the following: "NodeColor == blue)". PlacementConstraints *string `json:"placementConstraints,omitempty"` CorrelationScheme *[]ServiceCorrelationDescription `json:"correlationScheme,omitempty"` ServiceLoadMetrics *[]ServiceLoadMetricDescription `json:"serviceLoadMetrics,omitempty"` ServicePlacementPolicies *[]BasicServicePlacementPolicyDescription `json:"servicePlacementPolicies,omitempty"` // DefaultMoveCost - Possible values include: 'MoveCostZero', 'MoveCostLow', 'MoveCostMedium', 'MoveCostHigh' DefaultMoveCost MoveCost `json:"defaultMoveCost,omitempty"` }
StatefulServiceProperties the properties of a stateful service resource.
func (StatefulServiceProperties) AsBasicServiceResourceProperties ¶
func (ssp StatefulServiceProperties) AsBasicServiceResourceProperties() (BasicServiceResourceProperties, bool)
AsBasicServiceResourceProperties is the BasicServiceResourceProperties implementation for StatefulServiceProperties.
func (StatefulServiceProperties) AsServiceResourceProperties ¶
func (ssp StatefulServiceProperties) AsServiceResourceProperties() (*ServiceResourceProperties, bool)
AsServiceResourceProperties is the BasicServiceResourceProperties implementation for StatefulServiceProperties.
func (StatefulServiceProperties) AsStatefulServiceProperties ¶
func (ssp StatefulServiceProperties) AsStatefulServiceProperties() (*StatefulServiceProperties, bool)
AsStatefulServiceProperties is the BasicServiceResourceProperties implementation for StatefulServiceProperties.
func (StatefulServiceProperties) AsStatelessServiceProperties ¶
func (ssp StatefulServiceProperties) AsStatelessServiceProperties() (*StatelessServiceProperties, bool)
AsStatelessServiceProperties is the BasicServiceResourceProperties implementation for StatefulServiceProperties.
func (StatefulServiceProperties) MarshalJSON ¶
func (ssp StatefulServiceProperties) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for StatefulServiceProperties.
func (*StatefulServiceProperties) UnmarshalJSON ¶
func (ssp *StatefulServiceProperties) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for StatefulServiceProperties struct.
type StatefulServiceUpdateProperties ¶
type StatefulServiceUpdateProperties struct { // TargetReplicaSetSize - The target replica set size as a number. TargetReplicaSetSize *int32 `json:"targetReplicaSetSize,omitempty"` // MinReplicaSetSize - The minimum replica set size as a number. MinReplicaSetSize *int32 `json:"minReplicaSetSize,omitempty"` // ReplicaRestartWaitDuration - The duration between when a replica goes down and when a new replica is created, represented in ISO 8601 format (hh:mm:ss.s). ReplicaRestartWaitDuration *date.Time `json:"replicaRestartWaitDuration,omitempty"` // QuorumLossWaitDuration - The maximum duration for which a partition is allowed to be in a state of quorum loss, represented in ISO 8601 format (hh:mm:ss.s). QuorumLossWaitDuration *date.Time `json:"quorumLossWaitDuration,omitempty"` // StandByReplicaKeepDuration - The definition on how long StandBy replicas should be maintained before being removed, represented in ISO 8601 format (hh:mm:ss.s). StandByReplicaKeepDuration *date.Time `json:"standByReplicaKeepDuration,omitempty"` // ServiceKind - Possible values include: 'ServiceKindBasicServiceResourceUpdatePropertiesServiceKindServiceResourceUpdateProperties', 'ServiceKindBasicServiceResourceUpdatePropertiesServiceKindStateful', 'ServiceKindBasicServiceResourceUpdatePropertiesServiceKindStateless' ServiceKind ServiceKindBasicServiceResourceUpdateProperties `json:"serviceKind,omitempty"` // PlacementConstraints - The placement constraints as a string. Placement constraints are boolean expressions on node properties and allow for restricting a service to particular nodes based on the service requirements. For example, to place a service on nodes where NodeType is blue specify the following: "NodeColor == blue)". PlacementConstraints *string `json:"placementConstraints,omitempty"` CorrelationScheme *[]ServiceCorrelationDescription `json:"correlationScheme,omitempty"` ServiceLoadMetrics *[]ServiceLoadMetricDescription `json:"serviceLoadMetrics,omitempty"` ServicePlacementPolicies *[]BasicServicePlacementPolicyDescription `json:"servicePlacementPolicies,omitempty"` // DefaultMoveCost - Possible values include: 'MoveCostZero', 'MoveCostLow', 'MoveCostMedium', 'MoveCostHigh' DefaultMoveCost MoveCost `json:"defaultMoveCost,omitempty"` }
StatefulServiceUpdateProperties the properties of a stateful service resource for patch operations.
func (StatefulServiceUpdateProperties) AsBasicServiceResourceUpdateProperties ¶
func (ssup StatefulServiceUpdateProperties) AsBasicServiceResourceUpdateProperties() (BasicServiceResourceUpdateProperties, bool)
AsBasicServiceResourceUpdateProperties is the BasicServiceResourceUpdateProperties implementation for StatefulServiceUpdateProperties.
func (StatefulServiceUpdateProperties) AsServiceResourceUpdateProperties ¶
func (ssup StatefulServiceUpdateProperties) AsServiceResourceUpdateProperties() (*ServiceResourceUpdateProperties, bool)
AsServiceResourceUpdateProperties is the BasicServiceResourceUpdateProperties implementation for StatefulServiceUpdateProperties.
func (StatefulServiceUpdateProperties) AsStatefulServiceUpdateProperties ¶
func (ssup StatefulServiceUpdateProperties) AsStatefulServiceUpdateProperties() (*StatefulServiceUpdateProperties, bool)
AsStatefulServiceUpdateProperties is the BasicServiceResourceUpdateProperties implementation for StatefulServiceUpdateProperties.
func (StatefulServiceUpdateProperties) AsStatelessServiceUpdateProperties ¶
func (ssup StatefulServiceUpdateProperties) AsStatelessServiceUpdateProperties() (*StatelessServiceUpdateProperties, bool)
AsStatelessServiceUpdateProperties is the BasicServiceResourceUpdateProperties implementation for StatefulServiceUpdateProperties.
func (StatefulServiceUpdateProperties) MarshalJSON ¶
func (ssup StatefulServiceUpdateProperties) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for StatefulServiceUpdateProperties.
func (*StatefulServiceUpdateProperties) UnmarshalJSON ¶
func (ssup *StatefulServiceUpdateProperties) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for StatefulServiceUpdateProperties struct.
type StatelessServiceProperties ¶
type StatelessServiceProperties struct { // InstanceCount - The instance count. InstanceCount *int32 `json:"instanceCount,omitempty"` // InstanceCloseDelayDuration - Delay duration for RequestDrain feature to ensures that the endpoint advertised by the stateless instance is removed before the delay starts prior to closing the instance. This delay enables existing requests to drain gracefully before the instance actually goes down (https://docs.microsoft.com/en-us/azure/service-fabric/service-fabric-application-upgrade-advanced#avoid-connection-drops-during-stateless-service-planned-downtime-preview). It is first interpreted as a string representing an ISO 8601 duration. If that fails, then it is interpreted as a number representing the total number of milliseconds. InstanceCloseDelayDuration *string `json:"instanceCloseDelayDuration,omitempty"` // ProvisioningState - READ-ONLY; The current deployment or provisioning state, which only appears in the response ProvisioningState *string `json:"provisioningState,omitempty"` // ServiceTypeName - The name of the service type ServiceTypeName *string `json:"serviceTypeName,omitempty"` PartitionDescription BasicPartitionSchemeDescription `json:"partitionDescription,omitempty"` // ServicePackageActivationMode - The activation Mode of the service package. Possible values include: 'ArmServicePackageActivationModeSharedProcess', 'ArmServicePackageActivationModeExclusiveProcess' ServicePackageActivationMode ArmServicePackageActivationMode `json:"servicePackageActivationMode,omitempty"` // ServiceDNSName - Dns name used for the service. If this is specified, then the service can be accessed via its DNS name instead of service name. ServiceDNSName *string `json:"serviceDnsName,omitempty"` // ServiceKind - Possible values include: 'ServiceKindBasicServiceResourcePropertiesServiceKindServiceResourceProperties', 'ServiceKindBasicServiceResourcePropertiesServiceKindStateful', 'ServiceKindBasicServiceResourcePropertiesServiceKindStateless' ServiceKind ServiceKindBasicServiceResourceProperties `json:"serviceKind,omitempty"` // PlacementConstraints - The placement constraints as a string. Placement constraints are boolean expressions on node properties and allow for restricting a service to particular nodes based on the service requirements. For example, to place a service on nodes where NodeType is blue specify the following: "NodeColor == blue)". PlacementConstraints *string `json:"placementConstraints,omitempty"` CorrelationScheme *[]ServiceCorrelationDescription `json:"correlationScheme,omitempty"` ServiceLoadMetrics *[]ServiceLoadMetricDescription `json:"serviceLoadMetrics,omitempty"` ServicePlacementPolicies *[]BasicServicePlacementPolicyDescription `json:"servicePlacementPolicies,omitempty"` // DefaultMoveCost - Possible values include: 'MoveCostZero', 'MoveCostLow', 'MoveCostMedium', 'MoveCostHigh' DefaultMoveCost MoveCost `json:"defaultMoveCost,omitempty"` }
StatelessServiceProperties the properties of a stateless service resource.
func (StatelessServiceProperties) AsBasicServiceResourceProperties ¶
func (ssp StatelessServiceProperties) AsBasicServiceResourceProperties() (BasicServiceResourceProperties, bool)
AsBasicServiceResourceProperties is the BasicServiceResourceProperties implementation for StatelessServiceProperties.
func (StatelessServiceProperties) AsServiceResourceProperties ¶
func (ssp StatelessServiceProperties) AsServiceResourceProperties() (*ServiceResourceProperties, bool)
AsServiceResourceProperties is the BasicServiceResourceProperties implementation for StatelessServiceProperties.
func (StatelessServiceProperties) AsStatefulServiceProperties ¶
func (ssp StatelessServiceProperties) AsStatefulServiceProperties() (*StatefulServiceProperties, bool)
AsStatefulServiceProperties is the BasicServiceResourceProperties implementation for StatelessServiceProperties.
func (StatelessServiceProperties) AsStatelessServiceProperties ¶
func (ssp StatelessServiceProperties) AsStatelessServiceProperties() (*StatelessServiceProperties, bool)
AsStatelessServiceProperties is the BasicServiceResourceProperties implementation for StatelessServiceProperties.
func (StatelessServiceProperties) MarshalJSON ¶
func (ssp StatelessServiceProperties) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for StatelessServiceProperties.
func (*StatelessServiceProperties) UnmarshalJSON ¶
func (ssp *StatelessServiceProperties) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for StatelessServiceProperties struct.
type StatelessServiceUpdateProperties ¶
type StatelessServiceUpdateProperties struct { // InstanceCount - The instance count. InstanceCount *int32 `json:"instanceCount,omitempty"` // InstanceCloseDelayDuration - Delay duration for RequestDrain feature to ensures that the endpoint advertised by the stateless instance is removed before the delay starts prior to closing the instance. This delay enables existing requests to drain gracefully before the instance actually goes down (https://docs.microsoft.com/en-us/azure/service-fabric/service-fabric-application-upgrade-advanced#avoid-connection-drops-during-stateless-service-planned-downtime-preview). It is first interpreted as a string representing an ISO 8601 duration. If that fails, then it is interpreted as a number representing the total number of milliseconds. InstanceCloseDelayDuration *string `json:"instanceCloseDelayDuration,omitempty"` // ServiceKind - Possible values include: 'ServiceKindBasicServiceResourceUpdatePropertiesServiceKindServiceResourceUpdateProperties', 'ServiceKindBasicServiceResourceUpdatePropertiesServiceKindStateful', 'ServiceKindBasicServiceResourceUpdatePropertiesServiceKindStateless' ServiceKind ServiceKindBasicServiceResourceUpdateProperties `json:"serviceKind,omitempty"` // PlacementConstraints - The placement constraints as a string. Placement constraints are boolean expressions on node properties and allow for restricting a service to particular nodes based on the service requirements. For example, to place a service on nodes where NodeType is blue specify the following: "NodeColor == blue)". PlacementConstraints *string `json:"placementConstraints,omitempty"` CorrelationScheme *[]ServiceCorrelationDescription `json:"correlationScheme,omitempty"` ServiceLoadMetrics *[]ServiceLoadMetricDescription `json:"serviceLoadMetrics,omitempty"` ServicePlacementPolicies *[]BasicServicePlacementPolicyDescription `json:"servicePlacementPolicies,omitempty"` // DefaultMoveCost - Possible values include: 'MoveCostZero', 'MoveCostLow', 'MoveCostMedium', 'MoveCostHigh' DefaultMoveCost MoveCost `json:"defaultMoveCost,omitempty"` }
StatelessServiceUpdateProperties the properties of a stateless service resource for patch operations.
func (StatelessServiceUpdateProperties) AsBasicServiceResourceUpdateProperties ¶
func (ssup StatelessServiceUpdateProperties) AsBasicServiceResourceUpdateProperties() (BasicServiceResourceUpdateProperties, bool)
AsBasicServiceResourceUpdateProperties is the BasicServiceResourceUpdateProperties implementation for StatelessServiceUpdateProperties.
func (StatelessServiceUpdateProperties) AsServiceResourceUpdateProperties ¶
func (ssup StatelessServiceUpdateProperties) AsServiceResourceUpdateProperties() (*ServiceResourceUpdateProperties, bool)
AsServiceResourceUpdateProperties is the BasicServiceResourceUpdateProperties implementation for StatelessServiceUpdateProperties.
func (StatelessServiceUpdateProperties) AsStatefulServiceUpdateProperties ¶
func (ssup StatelessServiceUpdateProperties) AsStatefulServiceUpdateProperties() (*StatefulServiceUpdateProperties, bool)
AsStatefulServiceUpdateProperties is the BasicServiceResourceUpdateProperties implementation for StatelessServiceUpdateProperties.
func (StatelessServiceUpdateProperties) AsStatelessServiceUpdateProperties ¶
func (ssup StatelessServiceUpdateProperties) AsStatelessServiceUpdateProperties() (*StatelessServiceUpdateProperties, bool)
AsStatelessServiceUpdateProperties is the BasicServiceResourceUpdateProperties implementation for StatelessServiceUpdateProperties.
func (StatelessServiceUpdateProperties) MarshalJSON ¶
func (ssup StatelessServiceUpdateProperties) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for StatelessServiceUpdateProperties.
func (*StatelessServiceUpdateProperties) UnmarshalJSON ¶
func (ssup *StatelessServiceUpdateProperties) UnmarshalJSON(body []byte) error
UnmarshalJSON is the custom unmarshaler for StatelessServiceUpdateProperties struct.
type SystemData ¶
type SystemData struct { // CreatedBy - The identity that created the resource. CreatedBy *string `json:"createdBy,omitempty"` // CreatedByType - The type of identity that created the resource. CreatedByType *string `json:"createdByType,omitempty"` // CreatedAt - The timestamp of resource creation (UTC). CreatedAt *date.Time `json:"createdAt,omitempty"` // LastModifiedBy - The identity that last modified the resource. LastModifiedBy *string `json:"lastModifiedBy,omitempty"` // LastModifiedByType - The type of identity that last modified the resource. LastModifiedByType *string `json:"lastModifiedByType,omitempty"` // LastModifiedAt - The timestamp of resource last modification (UTC). LastModifiedAt *date.Time `json:"lastModifiedAt,omitempty"` }
SystemData metadata pertaining to creation and last modification of the resource.
type Type ¶
type Type string
Type enumerates the values for type.
const ( // TypeServicePlacementPolicyDescription ... TypeServicePlacementPolicyDescription Type = "ServicePlacementPolicyDescription" )
func PossibleTypeValues ¶
func PossibleTypeValues() []Type
PossibleTypeValues returns an array of possible values for the Type const type.
type UniformInt64RangePartitionSchemeDescription ¶
type UniformInt64RangePartitionSchemeDescription struct { // Count - The number of partitions. Count *int32 `json:"count,omitempty"` // LowKey - String indicating the lower bound of the partition key range that // should be split between the partition ‘count’ LowKey *string `json:"lowKey,omitempty"` // HighKey - String indicating the upper bound of the partition key range that // should be split between the partition ‘count’ HighKey *string `json:"highKey,omitempty"` // PartitionScheme - Possible values include: 'PartitionSchemeBasicPartitionSchemeDescriptionPartitionSchemePartitionSchemeDescription', 'PartitionSchemeBasicPartitionSchemeDescriptionPartitionSchemeNamed', 'PartitionSchemeBasicPartitionSchemeDescriptionPartitionSchemeSingleton', 'PartitionSchemeBasicPartitionSchemeDescriptionPartitionSchemeUniformInt64Range' PartitionScheme PartitionSchemeBasicPartitionSchemeDescription `json:"partitionScheme,omitempty"` }
UniformInt64RangePartitionSchemeDescription describes a partitioning scheme where an integer range is allocated evenly across a number of partitions.
func (UniformInt64RangePartitionSchemeDescription) AsBasicPartitionSchemeDescription ¶
func (ui6rpsd UniformInt64RangePartitionSchemeDescription) AsBasicPartitionSchemeDescription() (BasicPartitionSchemeDescription, bool)
AsBasicPartitionSchemeDescription is the BasicPartitionSchemeDescription implementation for UniformInt64RangePartitionSchemeDescription.
func (UniformInt64RangePartitionSchemeDescription) AsNamedPartitionSchemeDescription ¶
func (ui6rpsd UniformInt64RangePartitionSchemeDescription) AsNamedPartitionSchemeDescription() (*NamedPartitionSchemeDescription, bool)
AsNamedPartitionSchemeDescription is the BasicPartitionSchemeDescription implementation for UniformInt64RangePartitionSchemeDescription.
func (UniformInt64RangePartitionSchemeDescription) AsPartitionSchemeDescription ¶
func (ui6rpsd UniformInt64RangePartitionSchemeDescription) AsPartitionSchemeDescription() (*PartitionSchemeDescription, bool)
AsPartitionSchemeDescription is the BasicPartitionSchemeDescription implementation for UniformInt64RangePartitionSchemeDescription.
func (UniformInt64RangePartitionSchemeDescription) AsSingletonPartitionSchemeDescription ¶
func (ui6rpsd UniformInt64RangePartitionSchemeDescription) AsSingletonPartitionSchemeDescription() (*SingletonPartitionSchemeDescription, bool)
AsSingletonPartitionSchemeDescription is the BasicPartitionSchemeDescription implementation for UniformInt64RangePartitionSchemeDescription.
func (UniformInt64RangePartitionSchemeDescription) AsUniformInt64RangePartitionSchemeDescription ¶
func (ui6rpsd UniformInt64RangePartitionSchemeDescription) AsUniformInt64RangePartitionSchemeDescription() (*UniformInt64RangePartitionSchemeDescription, bool)
AsUniformInt64RangePartitionSchemeDescription is the BasicPartitionSchemeDescription implementation for UniformInt64RangePartitionSchemeDescription.
func (UniformInt64RangePartitionSchemeDescription) MarshalJSON ¶
func (ui6rpsd UniformInt64RangePartitionSchemeDescription) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for UniformInt64RangePartitionSchemeDescription.
type UpgradableVersionPathResult ¶
type UpgradableVersionPathResult struct { autorest.Response `json:"-"` SupportedPath *[]string `json:"supportedPath,omitempty"` }
UpgradableVersionPathResult the list of intermediate cluster code versions for an upgrade or downgrade. Or minimum and maximum upgradable version if no target was given
type UpgradableVersionsDescription ¶
type UpgradableVersionsDescription struct { // TargetVersion - The target code version. TargetVersion *string `json:"targetVersion,omitempty"` }
UpgradableVersionsDescription ...
type UpgradeMode ¶
type UpgradeMode string
UpgradeMode enumerates the values for upgrade mode.
const ( // UpgradeModeAutomatic The cluster will be automatically upgraded to the latest Service Fabric runtime // version, **upgradeWave** will determine when the upgrade starts after the new version becomes available. UpgradeModeAutomatic UpgradeMode = "Automatic" // UpgradeModeManual The cluster will not be automatically upgraded to the latest Service Fabric runtime // version. The cluster is upgraded by setting the **clusterCodeVersion** property in the cluster resource. UpgradeModeManual UpgradeMode = "Manual" )
func PossibleUpgradeModeValues ¶
func PossibleUpgradeModeValues() []UpgradeMode
PossibleUpgradeModeValues returns an array of possible values for the UpgradeMode const type.
type UserAssignedIdentity ¶
type UserAssignedIdentity struct { // PrincipalID - READ-ONLY; The principal id of user assigned identity. PrincipalID *string `json:"principalId,omitempty"` // ClientID - READ-ONLY; The client id of user assigned identity. ClientID *string `json:"clientId,omitempty"` }
UserAssignedIdentity ...
func (UserAssignedIdentity) MarshalJSON ¶
func (uai UserAssignedIdentity) MarshalJSON() ([]byte, error)
MarshalJSON is the custom marshaler for UserAssignedIdentity.
type VmssZonalUpgradeMode ¶
type VmssZonalUpgradeMode string
VmssZonalUpgradeMode enumerates the values for vmss zonal upgrade mode.
const ( // VmssZonalUpgradeModeHierarchical VMs are grouped to reflect the zonal distribution in up to 15 UDs. Each // of the three zones has five UDs. This ensures that the zones are updated one at a time, moving to next // zone only after completing five UDs within the first zone. VmssZonalUpgradeModeHierarchical VmssZonalUpgradeMode = "Hierarchical" // VmssZonalUpgradeModeParallel Updates will happen in all Availability Zones at once for the virtual // machine scale sets. VmssZonalUpgradeModeParallel VmssZonalUpgradeMode = "Parallel" )
func PossibleVmssZonalUpgradeModeValues ¶
func PossibleVmssZonalUpgradeModeValues() []VmssZonalUpgradeMode
PossibleVmssZonalUpgradeModeValues returns an array of possible values for the VmssZonalUpgradeMode const type.
type X509StoreName ¶
type X509StoreName string
X509StoreName enumerates the values for x509 store name.
const ( // X509StoreNameAddressBook ... X509StoreNameAddressBook X509StoreName = "AddressBook" // X509StoreNameAuthRoot ... X509StoreNameAuthRoot X509StoreName = "AuthRoot" // X509StoreNameCertificateAuthority ... X509StoreNameCertificateAuthority X509StoreName = "CertificateAuthority" // X509StoreNameDisallowed ... X509StoreNameDisallowed X509StoreName = "Disallowed" // X509StoreNameMy ... X509StoreNameMy X509StoreName = "My" // X509StoreNameRoot ... X509StoreNameRoot X509StoreName = "Root" // X509StoreNameTrustedPeople ... X509StoreNameTrustedPeople X509StoreName = "TrustedPeople" // X509StoreNameTrustedPublisher ... X509StoreNameTrustedPublisher X509StoreName = "TrustedPublisher" )
func PossibleX509StoreNameValues ¶
func PossibleX509StoreNameValues() []X509StoreName
PossibleX509StoreNameValues returns an array of possible values for the X509StoreName const type.
type X509StoreName1 ¶
type X509StoreName1 string
X509StoreName1 enumerates the values for x509 store name 1.
const ( // X509StoreName1AddressBook ... X509StoreName1AddressBook X509StoreName1 = "AddressBook" // X509StoreName1AuthRoot ... X509StoreName1AuthRoot X509StoreName1 = "AuthRoot" // X509StoreName1CertificateAuthority ... X509StoreName1CertificateAuthority X509StoreName1 = "CertificateAuthority" // X509StoreName1Disallowed ... X509StoreName1Disallowed X509StoreName1 = "Disallowed" // X509StoreName1My ... X509StoreName1My X509StoreName1 = "My" // X509StoreName1Root ... X509StoreName1Root X509StoreName1 = "Root" // X509StoreName1TrustedPeople ... X509StoreName1TrustedPeople X509StoreName1 = "TrustedPeople" // X509StoreName1TrustedPublisher ... X509StoreName1TrustedPublisher X509StoreName1 = "TrustedPublisher" )
func PossibleX509StoreName1Values ¶
func PossibleX509StoreName1Values() []X509StoreName1
PossibleX509StoreName1Values returns an array of possible values for the X509StoreName1 const type.