Documentation ¶
Overview ¶
Package servicefabric implements the Azure ARM Servicefabric service API version 2019-03-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 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 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 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) 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 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 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 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 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 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 UpgradeMode
- type UpgradeMode1
- 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:"-"` // ApplicationResourceProperties - The application resource properties. *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"` }
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 - The application type name as defined in the application manifest. TypeName *string `json:"typeName,omitempty"` // TypeVersion - The version of the application type as defined in the application manifest. TypeVersion *string `json:"typeVersion,omitempty"` // Parameters - List of application parameters with overridden values from their default values specified in the application manifest. Parameters map[string]*string `json:"parameters"` // UpgradePolicy - Describes the policy for a monitored application upgrade. 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 - List of application capacity metric description. Metrics *[]ApplicationMetricDescription `json:"metrics,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 - The application resource properties for patch operations. *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"` }
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 - The version of the application type as defined in the application manifest. TypeVersion *string `json:"typeVersion,omitempty"` // Parameters - List of application parameters with overridden values from their default values specified in the application manifest. Parameters map[string]*string `json:"parameters"` // UpgradePolicy - Describes the policy for a monitored application upgrade. 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 - List of application capacity metric description. Metrics *[]ApplicationMetricDescription `json:"metrics,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 - The application type name properties *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"` }
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
type ApplicationTypeVersionResource ¶
type ApplicationTypeVersionResource struct { autorest.Response `json:"-"` // ApplicationTypeVersionResourceProperties - The properties of the application type version resource. *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"` }
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; List of application type parameters that can be overridden when creating or updating the application. 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 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 ¶
ApplicationTypeVersionsCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a long-running operation.
func (*ApplicationTypeVersionsCreateOrUpdateFuture) Result ¶
func (future *ApplicationTypeVersionsCreateOrUpdateFuture) Result(client ApplicationTypeVersionsClient) (atvr ApplicationTypeVersionResource, err error)
Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.
type ApplicationTypeVersionsDeleteFuture ¶
ApplicationTypeVersionsDeleteFuture an abstraction for monitoring and retrieving the results of a long-running operation.
func (*ApplicationTypeVersionsDeleteFuture) Result ¶
func (future *ApplicationTypeVersionsDeleteFuture) Result(client ApplicationTypeVersionsClient) (ar autorest.Response, err error)
Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.
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 ¶
ApplicationTypesDeleteFuture an abstraction for monitoring and retrieving the results of a long-running operation.
func (*ApplicationTypesDeleteFuture) Result ¶
func (future *ApplicationTypesDeleteFuture) Result(client ApplicationTypesClient) (ar autorest.Response, err error)
Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.
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 - 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"` // RollingUpgradeMonitoringPolicy - The policy used for monitoring the application upgrade RollingUpgradeMonitoringPolicy *ArmRollingUpgradeMonitoringPolicy `json:"rollingUpgradeMonitoringPolicy,omitempty"` // ApplicationHealthPolicy - Defines a health policy used to evaluate the health of an application or one of its children entities. ApplicationHealthPolicy *ArmApplicationHealthPolicy `json:"applicationHealthPolicy,omitempty"` }
ApplicationUpgradePolicy describes the policy for a monitored application upgrade.
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 ¶
ApplicationsCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a long-running operation.
func (*ApplicationsCreateOrUpdateFuture) Result ¶
func (future *ApplicationsCreateOrUpdateFuture) Result(client ApplicationsClient) (ar ApplicationResource, err error)
Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.
type ApplicationsDeleteFuture ¶
ApplicationsDeleteFuture an abstraction for monitoring and retrieving the results of a long-running operation.
func (*ApplicationsDeleteFuture) Result ¶
func (future *ApplicationsDeleteFuture) Result(client ApplicationsClient) (ar autorest.Response, err error)
Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.
type ApplicationsUpdateFuture ¶
ApplicationsUpdateFuture an abstraction for monitoring and retrieving the results of a long-running operation.
func (*ApplicationsUpdateFuture) Result ¶
func (future *ApplicationsUpdateFuture) Result(client ApplicationsClient) (ar ApplicationResource, err error)
Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.
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: 'Rollback', 'Manual' FailureAction ArmUpgradeFailureAction `json:"failureAction,omitempty"` // HealthCheckWaitDuration - The amount of time to wait after completing an upgrade domain before applying health policies. 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. 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. 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. HealthCheckStableDuration *string `json:"healthCheckStableDuration,omitempty"` // HealthCheckRetryTimeout - The amount of time to retry health evaluation when the application or cluster is unhealthy before FailureAction is executed. 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. HealthCheckRetryTimeout *string `json:"healthCheckRetryTimeout,omitempty"` // UpgradeTimeout - The amount of time the overall upgrade has to complete before FailureAction is executed. 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. UpgradeTimeout *string `json:"upgradeTimeout,omitempty"` // UpgradeDomainTimeout - The amount of time each upgrade domain has to complete before FailureAction is executed. 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. 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 ( // ExclusiveProcess Indicates the application package activation mode will use exclusive process. ExclusiveProcess ArmServicePackageActivationMode = "ExclusiveProcess" SharedProcess 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 ( // Manual 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. Manual ArmUpgradeFailureAction = "Manual" // Rollback Indicates that a rollback of the upgrade will be performed by Service Fabric if the upgrade // fails. Rollback 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 - The local certificate store location. Possible values include: 'AddressBook', 'AuthRoot', 'CertificateAuthority', 'Disallowed', 'My', 'Root', 'TrustedPeople', 'TrustedPublisher' 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"` }
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 - The detail of the Service Fabric runtime version result *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 - Describes a list of server certificates referenced by common name that are used to secure the cluster. 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; The current state of the cluster. // - WaitingForNodes - Indicates that the cluster resource is created and the resource provider is waiting for Service Fabric VM extension to boot up and report to it. // - Deploying - Indicates that the Service Fabric runtime is being installed on the VMs. Cluster resource will be in this state until the cluster boots up and system services are up. // - BaselineUpgrade - Indicates that the cluster is upgrading to establishes the cluster version. This upgrade is automatically initiated when the cluster boots up for the first time. // - UpdatingUserConfiguration - Indicates that the cluster is being upgraded with the user provided configuration. // - UpdatingUserCertificate - Indicates that the cluster is being upgraded with the user provided certificate. // - UpdatingInfrastructure - Indicates that the cluster is being upgraded with the latest Service Fabric runtime version. This happens only when the **upgradeMode** is set to 'Automatic'. // - EnforcingClusterVersion - Indicates that cluster is on a different version than expected and the cluster is being upgraded to the expected version. // - UpgradeServiceUnreachable - Indicates that the system service in the cluster is no longer polling the Resource Provider. Clusters in this state cannot be managed by the Resource Provider. // - AutoScale - Indicates that the ReliabilityLevel of the cluster is being adjusted. // - Ready - Indicates that the cluster is in a stable state. // . Possible values include: 'WaitingForNodes', 'Deploying', 'BaselineUpgrade', 'UpdatingUserConfiguration', 'UpdatingUserCertificate', 'UpdatingInfrastructure', 'EnforcingClusterVersion', 'UpgradeServiceUnreachable', 'AutoScale', 'Ready' 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: 'Updating', 'Succeeded', 'Failed', 'Canceled' ProvisioningState ProvisioningState `json:"provisioningState,omitempty"` // ReliabilityLevel - The reliability level sets the replica set size of system services. Learn about [ReliabilityLevel](https://docs.microsoft.com/azure/service-fabric/service-fabric-cluster-capacity). // - None - Run the System services with a target replica set count of 1. This should only be used for test clusters. // - Bronze - Run the System services with a target replica set count of 3. This should only be used for test clusters. // - Silver - Run the System services with a target replica set count of 5. // - Gold - Run the System services with a target replica set count of 7. // - Platinum - Run the System services with a target replica set count of 9. // . 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 - Describes a list of server certificates referenced by common name that are used to secure the cluster. ReverseProxyCertificateCommonNames *ServerCertificateCommonNames `json:"reverseProxyCertificateCommonNames,omitempty"` // UpgradeDescription - The policy to use when upgrading the cluster. UpgradeDescription *ClusterUpgradePolicy `json:"upgradeDescription,omitempty"` // UpgradeMode - The upgrade mode of the cluster when new Service Fabric runtime version is available. // - Automatic - The cluster will be automatically upgraded to the latest Service Fabric runtime version as soon as it is available. // - Manual - 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. // . Possible values include: 'UpgradeModeAutomatic', 'UpgradeModeManual' UpgradeMode UpgradeMode `json:"upgradeMode,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"` }
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 - Describes a list of server certificates referenced by common name that are used to secure the cluster. 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 - The reliability level sets the replica set size of system services. Learn about [ReliabilityLevel](https://docs.microsoft.com/azure/service-fabric/service-fabric-cluster-capacity). // - None - Run the System services with a target replica set count of 1. This should only be used for test clusters. // - Bronze - Run the System services with a target replica set count of 3. This should only be used for test clusters. // - Silver - Run the System services with a target replica set count of 5. // - Gold - Run the System services with a target replica set count of 7. // - Platinum - Run the System services with a target replica set count of 9. // . 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"` // UpgradeMode - The upgrade mode of the cluster when new Service Fabric runtime version is available. // - Automatic - The cluster will be automatically upgraded to the latest Service Fabric runtime version as soon as it is available. // - Manual - 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. // . Possible values include: 'UpgradeMode1Automatic', 'UpgradeMode1Manual' UpgradeMode UpgradeMode1 `json:"upgradeMode,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 ( // AutoScale ... AutoScale ClusterState = "AutoScale" // BaselineUpgrade ... BaselineUpgrade ClusterState = "BaselineUpgrade" // Deploying ... Deploying ClusterState = "Deploying" // EnforcingClusterVersion ... EnforcingClusterVersion ClusterState = "EnforcingClusterVersion" // Ready ... Ready ClusterState = "Ready" // UpdatingInfrastructure ... UpdatingInfrastructure ClusterState = "UpdatingInfrastructure" // UpdatingUserCertificate ... UpdatingUserCertificate ClusterState = "UpdatingUserCertificate" // UpdatingUserConfiguration ... UpdatingUserConfiguration ClusterState = "UpdatingUserConfiguration" // UpgradeServiceUnreachable ... UpgradeServiceUnreachable ClusterState = "UpgradeServiceUnreachable" // WaitingForNodes ... WaitingForNodes 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 - Describes the cluster resource properties that can be updated during PATCH operation. *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 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: 'Windows', 'Linux' 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) 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 ¶
ClustersCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a long-running operation.
func (*ClustersCreateOrUpdateFuture) Result ¶
func (future *ClustersCreateOrUpdateFuture) Result(client ClustersClient) (c Cluster, err error)
Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.
type ClustersUpdateFuture ¶
ClustersUpdateFuture an abstraction for monitoring and retrieving the results of a long-running operation.
func (*ClustersUpdateFuture) Result ¶
func (future *ClustersUpdateFuture) Result(client ClustersClient) (c Cluster, err error)
Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.
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"` // 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 ( // Bronze ... Bronze DurabilityLevel = "Bronze" // Gold ... Gold DurabilityLevel = "Gold" // Silver ... Silver 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 ( // Linux ... Linux Environment = "Linux" // Windows ... Windows 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 - The error details. 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 MoveCost ¶
type MoveCost string
MoveCost enumerates the values for move cost.
const ( // High Specifies the move cost of the service as High. The value is 3. High MoveCost = "High" // Low Specifies the move cost of the service as Low. The value is 1. Low MoveCost = "Low" // Medium Specifies the move cost of the service as Medium. The value is 2. Medium MoveCost = "Medium" // Zero Zero move cost. This value is zero. Zero 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: 'PartitionSchemePartitionSchemeDescription', 'PartitionSchemeNamed', 'PartitionSchemeSingleton', 'PartitionSchemeUniformInt64Range' 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 - The durability level of the node type. Learn about [DurabilityLevel](https://docs.microsoft.com/azure/service-fabric/service-fabric-cluster-capacity). // - Bronze - No privileges. This is the default. // - Silver - The infrastructure jobs can be paused for a duration of 10 minutes per UD. // - Gold - The infrastructure jobs can be paused for a duration of 2 hours per UD. Gold durability can be enabled only on full node VM skus like D15_V2, G5 etc. // . Possible values include: 'Bronze', 'Silver', 'Gold' 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 - The number of nodes in the node type. This count should match the capacity property in the corresponding VirtualMachineScaleSet resource. VMInstanceCount *int32 `json:"vmInstanceCount,omitempty"` // ReverseProxyEndpointPort - The endpoint used by reverse proxy. ReverseProxyEndpointPort *int32 `json:"reverseProxyEndpointPort,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 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"` // 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 ( // Invalid Indicates the partition kind is invalid. All Service Fabric enumerations have the invalid type. // The value is zero. Invalid PartitionScheme = "Invalid" // Named Indicates that the partition is based on string names, and is a NamedPartitionSchemeDescription // object. The value is 3 Named PartitionScheme = "Named" // Singleton Indicates that the partition is based on string names, and is a // SingletonPartitionSchemeDescription object, The value is 1. Singleton PartitionScheme = "Singleton" // UniformInt64Range Indicates that the partition is based on Int64 key ranges, and is a // UniformInt64RangePartitionSchemeDescription object. The value is 2. UniformInt64Range 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 ( // PartitionSchemeNamed ... PartitionSchemeNamed PartitionSchemeBasicPartitionSchemeDescription = "Named" // PartitionSchemePartitionSchemeDescription ... PartitionSchemePartitionSchemeDescription PartitionSchemeBasicPartitionSchemeDescription = "PartitionSchemeDescription" // PartitionSchemeSingleton ... PartitionSchemeSingleton PartitionSchemeBasicPartitionSchemeDescription = "Singleton" // PartitionSchemeUniformInt64Range ... PartitionSchemeUniformInt64Range 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: 'PartitionSchemePartitionSchemeDescription', 'PartitionSchemeNamed', 'PartitionSchemeSingleton', 'PartitionSchemeUniformInt64Range' 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 ( // Canceled ... Canceled ProvisioningState = "Canceled" // Failed ... Failed ProvisioningState = "Failed" // Succeeded ... Succeeded ProvisioningState = "Succeeded" // Updating ... Updating 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"` }
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"` }
Resource the resource model definition.
func (Resource) MarshalJSON ¶
MarshalJSON is the custom marshaler for Resource.
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 - The local certificate store location. 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 ( // ServiceKindServiceResourceProperties ... ServiceKindServiceResourceProperties ServiceKindBasicServiceResourceProperties = "ServiceResourceProperties" // ServiceKindStateful1 ... ServiceKindStateful1 ServiceKindBasicServiceResourceProperties = "Stateful" // ServiceKindStateless1 ... ServiceKindStateless1 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 - The service resource properties. 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"` }
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 - Describes how the service is partitioned. PartitionDescription BasicPartitionSchemeDescription `json:"partitionDescription,omitempty"` // ServicePackageActivationMode - The activation Mode of the service package. Possible values include: 'SharedProcess', 'ExclusiveProcess' ServicePackageActivationMode ArmServicePackageActivationMode `json:"servicePackageActivationMode,omitempty"` // ServiceKind - Possible values include: 'ServiceKindServiceResourceProperties', 'ServiceKindStateful1', 'ServiceKindStateless1' 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 - A list that describes the correlation of the service with other services. CorrelationScheme *[]ServiceCorrelationDescription `json:"correlationScheme,omitempty"` // ServiceLoadMetrics - The service load metrics is given as an array of ServiceLoadMetricDescription objects. ServiceLoadMetrics *[]ServiceLoadMetricDescription `json:"serviceLoadMetrics,omitempty"` // ServicePlacementPolicies - A list that describes the correlation of the service with other services. ServicePlacementPolicies *[]BasicServicePlacementPolicyDescription `json:"servicePlacementPolicies,omitempty"` // DefaultMoveCost - Specifies the move cost for the service. Possible values include: 'Zero', 'Low', 'Medium', 'High' 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 - A list that describes the correlation of the service with other services. CorrelationScheme *[]ServiceCorrelationDescription `json:"correlationScheme,omitempty"` // ServiceLoadMetrics - The service load metrics is given as an array of ServiceLoadMetricDescription objects. ServiceLoadMetrics *[]ServiceLoadMetricDescription `json:"serviceLoadMetrics,omitempty"` // ServicePlacementPolicies - A list that describes the correlation of the service with other services. ServicePlacementPolicies *[]BasicServicePlacementPolicyDescription `json:"servicePlacementPolicies,omitempty"` // DefaultMoveCost - Specifies the move cost for the service. Possible values include: 'Zero', 'Low', 'Medium', 'High' 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 - The service resource properties for patch operations. 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"` }
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 - A list that describes the correlation of the service with other services. CorrelationScheme *[]ServiceCorrelationDescription `json:"correlationScheme,omitempty"` // ServiceLoadMetrics - The service load metrics is given as an array of ServiceLoadMetricDescription objects. ServiceLoadMetrics *[]ServiceLoadMetricDescription `json:"serviceLoadMetrics,omitempty"` // ServicePlacementPolicies - A list that describes the correlation of the service with other services. ServicePlacementPolicies *[]BasicServicePlacementPolicyDescription `json:"servicePlacementPolicies,omitempty"` // DefaultMoveCost - Specifies the move cost for the service. Possible values include: 'Zero', 'Low', 'Medium', 'High' 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 ¶
ServicesCreateOrUpdateFuture an abstraction for monitoring and retrieving the results of a long-running operation.
func (*ServicesCreateOrUpdateFuture) Result ¶
func (future *ServicesCreateOrUpdateFuture) Result(client ServicesClient) (sr ServiceResource, err error)
Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.
type ServicesDeleteFuture ¶
ServicesDeleteFuture an abstraction for monitoring and retrieving the results of a long-running operation.
func (*ServicesDeleteFuture) Result ¶
func (future *ServicesDeleteFuture) Result(client ServicesClient) (ar autorest.Response, err error)
Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.
type ServicesUpdateFuture ¶
ServicesUpdateFuture an abstraction for monitoring and retrieving the results of a long-running operation.
func (*ServicesUpdateFuture) Result ¶
func (future *ServicesUpdateFuture) Result(client ServicesClient) (sr ServiceResource, err error)
Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.
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 SingletonPartitionSchemeDescription ¶
type SingletonPartitionSchemeDescription struct { // PartitionScheme - Possible values include: 'PartitionSchemePartitionSchemeDescription', 'PartitionSchemeNamed', 'PartitionSchemeSingleton', 'PartitionSchemeUniformInt64Range' 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 - Describes how the service is partitioned. PartitionDescription BasicPartitionSchemeDescription `json:"partitionDescription,omitempty"` // ServicePackageActivationMode - The activation Mode of the service package. Possible values include: 'SharedProcess', 'ExclusiveProcess' ServicePackageActivationMode ArmServicePackageActivationMode `json:"servicePackageActivationMode,omitempty"` // ServiceKind - Possible values include: 'ServiceKindServiceResourceProperties', 'ServiceKindStateful1', 'ServiceKindStateless1' 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 - A list that describes the correlation of the service with other services. CorrelationScheme *[]ServiceCorrelationDescription `json:"correlationScheme,omitempty"` // ServiceLoadMetrics - The service load metrics is given as an array of ServiceLoadMetricDescription objects. ServiceLoadMetrics *[]ServiceLoadMetricDescription `json:"serviceLoadMetrics,omitempty"` // ServicePlacementPolicies - A list that describes the correlation of the service with other services. ServicePlacementPolicies *[]BasicServicePlacementPolicyDescription `json:"servicePlacementPolicies,omitempty"` // DefaultMoveCost - Specifies the move cost for the service. Possible values include: 'Zero', 'Low', 'Medium', 'High' 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 - A list that describes the correlation of the service with other services. CorrelationScheme *[]ServiceCorrelationDescription `json:"correlationScheme,omitempty"` // ServiceLoadMetrics - The service load metrics is given as an array of ServiceLoadMetricDescription objects. ServiceLoadMetrics *[]ServiceLoadMetricDescription `json:"serviceLoadMetrics,omitempty"` // ServicePlacementPolicies - A list that describes the correlation of the service with other services. ServicePlacementPolicies *[]BasicServicePlacementPolicyDescription `json:"servicePlacementPolicies,omitempty"` // DefaultMoveCost - Specifies the move cost for the service. Possible values include: 'Zero', 'Low', 'Medium', 'High' 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"` // 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 - Describes how the service is partitioned. PartitionDescription BasicPartitionSchemeDescription `json:"partitionDescription,omitempty"` // ServicePackageActivationMode - The activation Mode of the service package. Possible values include: 'SharedProcess', 'ExclusiveProcess' ServicePackageActivationMode ArmServicePackageActivationMode `json:"servicePackageActivationMode,omitempty"` // ServiceKind - Possible values include: 'ServiceKindServiceResourceProperties', 'ServiceKindStateful1', 'ServiceKindStateless1' 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 - A list that describes the correlation of the service with other services. CorrelationScheme *[]ServiceCorrelationDescription `json:"correlationScheme,omitempty"` // ServiceLoadMetrics - The service load metrics is given as an array of ServiceLoadMetricDescription objects. ServiceLoadMetrics *[]ServiceLoadMetricDescription `json:"serviceLoadMetrics,omitempty"` // ServicePlacementPolicies - A list that describes the correlation of the service with other services. ServicePlacementPolicies *[]BasicServicePlacementPolicyDescription `json:"servicePlacementPolicies,omitempty"` // DefaultMoveCost - Specifies the move cost for the service. Possible values include: 'Zero', 'Low', 'Medium', 'High' 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"` // 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 - A list that describes the correlation of the service with other services. CorrelationScheme *[]ServiceCorrelationDescription `json:"correlationScheme,omitempty"` // ServiceLoadMetrics - The service load metrics is given as an array of ServiceLoadMetricDescription objects. ServiceLoadMetrics *[]ServiceLoadMetricDescription `json:"serviceLoadMetrics,omitempty"` // ServicePlacementPolicies - A list that describes the correlation of the service with other services. ServicePlacementPolicies *[]BasicServicePlacementPolicyDescription `json:"servicePlacementPolicies,omitempty"` // DefaultMoveCost - Specifies the move cost for the service. Possible values include: 'Zero', 'Low', 'Medium', 'High' 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 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: 'PartitionSchemePartitionSchemeDescription', 'PartitionSchemeNamed', 'PartitionSchemeSingleton', 'PartitionSchemeUniformInt64Range' 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 UpgradeMode ¶
type UpgradeMode string
UpgradeMode enumerates the values for upgrade mode.
const ( // UpgradeModeAutomatic ... UpgradeModeAutomatic UpgradeMode = "Automatic" // UpgradeModeManual ... UpgradeModeManual UpgradeMode = "Manual" )
func PossibleUpgradeModeValues ¶
func PossibleUpgradeModeValues() []UpgradeMode
PossibleUpgradeModeValues returns an array of possible values for the UpgradeMode const type.
type UpgradeMode1 ¶
type UpgradeMode1 string
UpgradeMode1 enumerates the values for upgrade mode 1.
const ( // UpgradeMode1Automatic ... UpgradeMode1Automatic UpgradeMode1 = "Automatic" // UpgradeMode1Manual ... UpgradeMode1Manual UpgradeMode1 = "Manual" )
func PossibleUpgradeMode1Values ¶
func PossibleUpgradeMode1Values() []UpgradeMode1
PossibleUpgradeMode1Values returns an array of possible values for the UpgradeMode1 const type.
type X509StoreName ¶
type X509StoreName string
X509StoreName enumerates the values for x509 store name.
const ( // AddressBook ... AddressBook X509StoreName = "AddressBook" // AuthRoot ... AuthRoot X509StoreName = "AuthRoot" // CertificateAuthority ... CertificateAuthority X509StoreName = "CertificateAuthority" // Disallowed ... Disallowed X509StoreName = "Disallowed" // My ... My X509StoreName = "My" // Root ... Root X509StoreName = "Root" // TrustedPeople ... TrustedPeople X509StoreName = "TrustedPeople" // TrustedPublisher ... TrustedPublisher 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.