servicefabric

package
v14.0.0+incompatible Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 13, 2018 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package servicefabric implements the Azure ARM Servicefabric service API version 2017-07-01-preview.

Azure Service Fabric Resource Provider API Client

Index

Constants

View Source
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 ApplicationClient

type ApplicationClient struct {
	BaseClient
}

ApplicationClient is the azure Service Fabric Resource Provider API Client

func NewApplicationClient

func NewApplicationClient() ApplicationClient

NewApplicationClient creates an instance of the ApplicationClient client.

func NewApplicationClientWithBaseURI

func NewApplicationClientWithBaseURI(baseURI string) ApplicationClient

NewApplicationClientWithBaseURI creates an instance of the ApplicationClient client.

func (ApplicationClient) Delete

func (client ApplicationClient) Delete(ctx context.Context, subscriptionID string, resourceGroupName string, clusterName string, applicationName string) (result ApplicationDeleteFuture, err error)

Delete deletes an application resource with the specified name.

subscriptionID is the customer subscription identifier resourceGroupName is the name of the resource group. clusterName is the name of the cluster resource applicationName is the name of the application resource.

func (ApplicationClient) DeletePreparer

func (client ApplicationClient) DeletePreparer(ctx context.Context, subscriptionID string, resourceGroupName string, clusterName string, applicationName string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (ApplicationClient) DeleteResponder

func (client ApplicationClient) 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 (ApplicationClient) DeleteSender

func (client ApplicationClient) DeleteSender(req *http.Request) (future ApplicationDeleteFuture, err error)

DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.

func (ApplicationClient) Get

func (client ApplicationClient) Get(ctx context.Context, subscriptionID string, resourceGroupName string, clusterName string, applicationName string) (result ApplicationResource, err error)

Get returns an application resource with the specified name.

subscriptionID is the customer subscription identifier resourceGroupName is the name of the resource group. clusterName is the name of the cluster resource applicationName is the name of the application resource.

func (ApplicationClient) GetPreparer

func (client ApplicationClient) GetPreparer(ctx context.Context, subscriptionID string, resourceGroupName string, clusterName string, applicationName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (ApplicationClient) GetResponder

func (client ApplicationClient) 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 (ApplicationClient) GetSender

func (client ApplicationClient) GetSender(req *http.Request) (*http.Response, error)

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

func (ApplicationClient) List

func (client ApplicationClient) List(ctx context.Context, subscriptionID string, resourceGroupName string, clusterName string) (result ApplicationResourceList, err error)

List returns all application resources in the specified cluster.

subscriptionID is the customer subscription identifier resourceGroupName is the name of the resource group. clusterName is the name of the cluster resource

func (ApplicationClient) ListPreparer

func (client ApplicationClient) ListPreparer(ctx context.Context, subscriptionID string, resourceGroupName string, clusterName string) (*http.Request, error)

ListPreparer prepares the List request.

func (ApplicationClient) ListResponder

func (client ApplicationClient) 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 (ApplicationClient) ListSender

func (client ApplicationClient) ListSender(req *http.Request) (*http.Response, error)

ListSender sends the List request. The method will close the http.Response Body if it receives an error.

func (ApplicationClient) Patch

func (client ApplicationClient) Patch(ctx context.Context, subscriptionID string, resourceGroupName string, clusterName string, applicationName string, parameters ApplicationResourceUpdate) (result ApplicationPatchFuture, err error)

Patch updates an application resource with the specified name.

subscriptionID is the customer subscription identifier resourceGroupName is the name of the resource group. clusterName is the name of the cluster resource applicationName is the name of the application resource. parameters is the application resource for patch operations.

func (ApplicationClient) PatchPreparer

func (client ApplicationClient) PatchPreparer(ctx context.Context, subscriptionID string, resourceGroupName string, clusterName string, applicationName string, parameters ApplicationResourceUpdate) (*http.Request, error)

PatchPreparer prepares the Patch request.

func (ApplicationClient) PatchResponder

func (client ApplicationClient) PatchResponder(resp *http.Response) (result ApplicationResourceUpdate, err error)

PatchResponder handles the response to the Patch request. The method always closes the http.Response Body.

func (ApplicationClient) PatchSender

func (client ApplicationClient) PatchSender(req *http.Request) (future ApplicationPatchFuture, err error)

PatchSender sends the Patch request. The method will close the http.Response Body if it receives an error.

func (ApplicationClient) Put

func (client ApplicationClient) Put(ctx context.Context, subscriptionID string, resourceGroupName string, clusterName string, applicationName string, parameters ApplicationResource) (result ApplicationPutFuture, err error)

Put creates or updates an application resource with the specified name.

subscriptionID is the customer subscription identifier resourceGroupName is the name of the resource group. clusterName is the name of the cluster resource applicationName is the name of the application resource. parameters is the application resource.

func (ApplicationClient) PutPreparer

func (client ApplicationClient) PutPreparer(ctx context.Context, subscriptionID string, resourceGroupName string, clusterName string, applicationName string, parameters ApplicationResource) (*http.Request, error)

PutPreparer prepares the Put request.

func (ApplicationClient) PutResponder

func (client ApplicationClient) PutResponder(resp *http.Response) (result ApplicationResource, err error)

PutResponder handles the response to the Put request. The method always closes the http.Response Body.

func (ApplicationClient) PutSender

func (client ApplicationClient) PutSender(req *http.Request) (future ApplicationPutFuture, err error)

PutSender sends the Put request. The method will close the http.Response Body if it receives an error.

type ApplicationDeleteFuture

type ApplicationDeleteFuture struct {
	azure.Future
	// contains filtered or unexported fields
}

ApplicationDeleteFuture an abstraction for monitoring and retrieving the results of a long-running operation.

func (ApplicationDeleteFuture) Result

func (future ApplicationDeleteFuture) Result(client ApplicationClient) (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 ApplicationHealthPolicy

type ApplicationHealthPolicy 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          *ServiceTypeHealthPolicy          `json:"DefaultServiceTypeHealthPolicy,omitempty"`
	ServiceTypeHealthPolicyMap              *[]ServiceTypeHealthPolicyMapItem `json:"ServiceTypeHealthPolicyMap,omitempty"`
}

ApplicationHealthPolicy defines a health policy used to evaluate the health of an application or one of its children entities.

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 ApplicationParameter

type ApplicationParameter struct {
	// Key - The name of the parameter.
	Key *string `json:"Key,omitempty"`
	// Value - The value of the parameter.
	Value *string `json:"Value,omitempty"`
}

ApplicationParameter describes an application parameter override to be applied when creating or upgrading an application.

type ApplicationPatchFuture

type ApplicationPatchFuture struct {
	azure.Future
	// contains filtered or unexported fields
}

ApplicationPatchFuture an abstraction for monitoring and retrieving the results of a long-running operation.

func (ApplicationPatchFuture) Result

Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.

type ApplicationProperties

type ApplicationProperties struct {
	// ProvisioningState - The current deployment or provisioning state, which only appears in the response
	ProvisioningState *string                   `json:"provisioningState,omitempty"`
	TypeName          *string                   `json:"typeName,omitempty"`
	TypeVersion       *string                   `json:"typeVersion,omitempty"`
	Parameters        *[]ApplicationParameter   `json:"parameters,omitempty"`
	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 - The version of the application type
	RemoveApplicationCapacity *bool                           `json:"removeApplicationCapacity,omitempty"`
	Metrics                   *[]ApplicationMetricDescription `json:"metrics,omitempty"`
}

ApplicationProperties the application resource properties.

type ApplicationPutFuture

type ApplicationPutFuture struct {
	azure.Future
	// contains filtered or unexported fields
}

ApplicationPutFuture an abstraction for monitoring and retrieving the results of a long-running operation.

func (ApplicationPutFuture) Result

func (future ApplicationPutFuture) Result(client ApplicationClient) (ar ApplicationResource, err error)

Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.

type ApplicationResource

type ApplicationResource struct {
	autorest.Response      `json:"-"`
	*ApplicationProperties `json:"properties,omitempty"`
	// ID - Azure resource ID.
	ID *string `json:"id,omitempty"`
	// Name - Azure resource name.
	Name *string `json:"name,omitempty"`
	// Type - Azure resource type.
	Type *string `json:"type,omitempty"`
	// Location - Resource location.
	Location *string `json:"location,omitempty"`
}

ApplicationResource the application resource.

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"`
}

ApplicationResourceList the list of application resources.

type ApplicationResourceUpdate

type ApplicationResourceUpdate struct {
	autorest.Response            `json:"-"`
	*ApplicationUpdateProperties `json:"properties,omitempty"`
	// ID - Azure resource ID.
	ID *string `json:"id,omitempty"`
	// Name - Azure resource name.
	Name *string `json:"name,omitempty"`
	// Type - Azure resource type.
	Type *string `json:"type,omitempty"`
	// Location - Resource location.
	Location *string `json:"location,omitempty"`
}

ApplicationResourceUpdate the application resource for patch operations.

func (*ApplicationResourceUpdate) UnmarshalJSON

func (aru *ApplicationResourceUpdate) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for ApplicationResourceUpdate struct.

type ApplicationTypeClient

type ApplicationTypeClient struct {
	BaseClient
}

ApplicationTypeClient is the azure Service Fabric Resource Provider API Client

func NewApplicationTypeClient

func NewApplicationTypeClient() ApplicationTypeClient

NewApplicationTypeClient creates an instance of the ApplicationTypeClient client.

func NewApplicationTypeClientWithBaseURI

func NewApplicationTypeClientWithBaseURI(baseURI string) ApplicationTypeClient

NewApplicationTypeClientWithBaseURI creates an instance of the ApplicationTypeClient client.

func (ApplicationTypeClient) Delete

func (client ApplicationTypeClient) Delete(ctx context.Context, subscriptionID string, resourceGroupName string, clusterName string, applicationTypeName string) (result ApplicationTypeDeleteFuture, err error)

Delete deletes the application type name resource.

subscriptionID is the customer subscription identifier resourceGroupName is the name of the resource group. clusterName is the name of the cluster resource applicationTypeName is the name of the application type name resource

func (ApplicationTypeClient) DeletePreparer

func (client ApplicationTypeClient) DeletePreparer(ctx context.Context, subscriptionID string, resourceGroupName string, clusterName string, applicationTypeName string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (ApplicationTypeClient) DeleteResponder

func (client ApplicationTypeClient) 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 (ApplicationTypeClient) DeleteSender

func (client ApplicationTypeClient) DeleteSender(req *http.Request) (future ApplicationTypeDeleteFuture, err error)

DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.

func (ApplicationTypeClient) Get

func (client ApplicationTypeClient) Get(ctx context.Context, subscriptionID string, resourceGroupName string, clusterName string, applicationTypeName string) (result ApplicationTypeResource, err error)

Get returns an application type name resource.

subscriptionID is the customer subscription identifier resourceGroupName is the name of the resource group. clusterName is the name of the cluster resource applicationTypeName is the name of the application type name resource

func (ApplicationTypeClient) GetPreparer

func (client ApplicationTypeClient) GetPreparer(ctx context.Context, subscriptionID string, resourceGroupName string, clusterName string, applicationTypeName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (ApplicationTypeClient) GetResponder

func (client ApplicationTypeClient) 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 (ApplicationTypeClient) GetSender

func (client ApplicationTypeClient) GetSender(req *http.Request) (*http.Response, error)

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

func (ApplicationTypeClient) List

func (client ApplicationTypeClient) List(ctx context.Context, subscriptionID string, resourceGroupName string, clusterName string) (result ApplicationTypeResourceList, err error)

List returns all application type names in the specified cluster.

subscriptionID is the customer subscription identifier resourceGroupName is the name of the resource group. clusterName is the name of the cluster resource

func (ApplicationTypeClient) ListPreparer

func (client ApplicationTypeClient) ListPreparer(ctx context.Context, subscriptionID string, resourceGroupName string, clusterName string) (*http.Request, error)

ListPreparer prepares the List request.

func (ApplicationTypeClient) ListResponder

func (client ApplicationTypeClient) 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 (ApplicationTypeClient) ListSender

func (client ApplicationTypeClient) ListSender(req *http.Request) (*http.Response, error)

ListSender sends the List request. The method will close the http.Response Body if it receives an error.

func (ApplicationTypeClient) Put

func (client ApplicationTypeClient) Put(ctx context.Context, subscriptionID string, resourceGroupName string, clusterName string, applicationTypeName string, parameters ApplicationTypeResource) (result ApplicationTypeResource, err error)

Put creates the application type name resource.

subscriptionID is the customer subscription identifier resourceGroupName is the name of the resource group. clusterName is the name of the cluster resource applicationTypeName is the name of the application type name resource parameters is the application type name resource.

func (ApplicationTypeClient) PutPreparer

func (client ApplicationTypeClient) PutPreparer(ctx context.Context, subscriptionID string, resourceGroupName string, clusterName string, applicationTypeName string, parameters ApplicationTypeResource) (*http.Request, error)

PutPreparer prepares the Put request.

func (ApplicationTypeClient) PutResponder

func (client ApplicationTypeClient) PutResponder(resp *http.Response) (result ApplicationTypeResource, err error)

PutResponder handles the response to the Put request. The method always closes the http.Response Body.

func (ApplicationTypeClient) PutSender

func (client ApplicationTypeClient) PutSender(req *http.Request) (*http.Response, error)

PutSender sends the Put request. The method will close the http.Response Body if it receives an error.

type ApplicationTypeDeleteFuture

type ApplicationTypeDeleteFuture struct {
	azure.Future
	// contains filtered or unexported fields
}

ApplicationTypeDeleteFuture an abstraction for monitoring and retrieving the results of a long-running operation.

func (ApplicationTypeDeleteFuture) Result

Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.

type ApplicationTypeProperties

type ApplicationTypeProperties struct {
	// ProvisioningState - The current deployment or provisioning state, which only appears in the response.
	ProvisioningState *string `json:"provisioningState,omitempty"`
}

ApplicationTypeProperties the application type name properties

type ApplicationTypeResource

type ApplicationTypeResource struct {
	autorest.Response          `json:"-"`
	*ApplicationTypeProperties `json:"properties,omitempty"`
	// ID - Azure resource ID.
	ID *string `json:"id,omitempty"`
	// Name - Azure resource name.
	Name *string `json:"name,omitempty"`
	// Type - Azure resource type.
	Type *string `json:"type,omitempty"`
	// Location - Resource location.
	Location *string `json:"location,omitempty"`
}

ApplicationTypeResource the application type name resource

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"`
}

ApplicationTypeResourceList the list of application type names.

type ApplicationUpdateProperties

type ApplicationUpdateProperties struct {
	TypeVersion   *string                   `json:"typeVersion,omitempty"`
	Parameters    *[]ApplicationParameter   `json:"parameters,omitempty"`
	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 - The version of the application type
	RemoveApplicationCapacity *bool                           `json:"removeApplicationCapacity,omitempty"`
	Metrics                   *[]ApplicationMetricDescription `json:"metrics,omitempty"`
}

ApplicationUpdateProperties the application resource properties for patch operations.

type ApplicationUpgradePolicy

type ApplicationUpgradePolicy struct {
	UpgradeReplicaSetCheckTimeout  *int64                          `json:"upgradeReplicaSetCheckTimeout,omitempty"`
	ForceRestart                   *bool                           `json:"forceRestart,omitempty"`
	RollingUpgradeMonitoringPolicy *RollingUpgradeMonitoringPolicy `json:"rollingUpgradeMonitoringPolicy,omitempty"`
	ApplicationHealthPolicy        *ApplicationHealthPolicy        `json:"applicationHealthPolicy,omitempty"`
}

ApplicationUpgradePolicy describes the policy for a monitored application upgrade.

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 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

type BaseClient struct {
	autorest.Client
	BaseURI string
}

BaseClient is the base client for Servicefabric.

func New

func New() BaseClient

New creates an instance of the BaseClient client.

func NewWithBaseURI

func NewWithBaseURI(baseURI string) BaseClient

NewWithBaseURI creates an instance of the BaseClient client.

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 BasicServiceProperties

type BasicServiceProperties interface {
	AsStatelessServiceProperties() (*StatelessServiceProperties, bool)
	AsStatefulServiceProperties() (*StatefulServiceProperties, bool)
	AsServiceProperties() (*ServiceProperties, bool)
}

BasicServiceProperties the service resource properties.

type BasicServiceUpdateProperties

type BasicServiceUpdateProperties interface {
	AsStatelessServiceUpdateProperties() (*StatelessServiceUpdateProperties, bool)
	AsStatefulServiceUpdateProperties() (*StatefulServiceUpdateProperties, bool)
	AsServiceUpdateProperties() (*ServiceUpdateProperties, bool)
}

BasicServiceUpdateProperties 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 - Azure resource ID.
	ID *string `json:"id,omitempty"`
	// Name - Azure resource name.
	Name *string `json:"name,omitempty"`
	// Type - Azure resource type.
	Type *string `json:"type,omitempty"`
	// Location - Resource location.
	Location *string `json:"location,omitempty"`
	// Tags - Resource tags.
	Tags map[string]*string `json:"tags"`
}

Cluster the cluster resource

func (Cluster) MarshalJSON

func (c Cluster) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Cluster.

func (*Cluster) UnmarshalJSON

func (c *Cluster) UnmarshalJSON(body []byte) error

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 ServiceFabric runtime versions.

type ClusterCodeVersionsResult

type ClusterCodeVersionsResult struct {
	// ID - The identification of the result
	ID *string `json:"id,omitempty"`
	// Name - The name of the result
	Name *string `json:"name,omitempty"`
	// Type - The result resource type
	Type                   *string `json:"type,omitempty"`
	*ClusterVersionDetails `json:"properties,omitempty"`
}

ClusterCodeVersionsResult the result of the ServiceFabric runtime versions

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.
	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.
	MaxPercentUnhealthyApplications *int32 `json:"maxPercentUnhealthyApplications,omitempty"`
}

ClusterHealthPolicy defines a health policy used to evaluate the health of the cluster or of a cluster node.

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 {
	// AvailableClusterVersions - The Service Fabric runtime versions available for this cluster.
	AvailableClusterVersions *[]ClusterVersionDetails `json:"availableClusterVersions,omitempty"`
	// ClusterID - A service generated unique identifier for the cluster resource.
	ClusterID *string `json:"clusterId,omitempty"`
	// ClusterState - Possible values include: 'WaitingForNodes', 'Deploying', 'BaselineUpgrade', 'UpdatingUserConfiguration', 'UpdatingUserCertificate', 'UpdatingInfrastructure', 'EnforcingClusterVersion', 'UpgradeServiceUnreachable', 'AutoScale', 'Ready'
	ClusterState ClusterState `json:"clusterState,omitempty"`
	// ClusterEndpoint - The Azure Resource Provider endpoint. A system service in the cluster connects to this  endpoint.
	ClusterEndpoint *string `json:"clusterEndpoint,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"`
	// 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"`
	// ReliabilityLevel - Possible values include: 'ReliabilityLevelNone', 'ReliabilityLevelBronze', 'ReliabilityLevelSilver', 'ReliabilityLevelGold', 'ReliabilityLevelPlatinum'
	ReliabilityLevel ReliabilityLevel `json:"reliabilityLevel,omitempty"`
	// UpgradeMode - Possible values include: 'Automatic', 'Manual'
	UpgradeMode UpgradeMode `json:"upgradeMode,omitempty"`
	// ClientCertificateThumbprints - The list of client certificates referenced by thumbprint that are allowed to manage the cluster.
	ClientCertificateThumbprints *[]ClientCertificateThumbprint `json:"clientCertificateThumbprints,omitempty"`
	// ClientCertificateCommonNames - The list of client certificates referenced by common name that are allowed to manage the cluster.
	ClientCertificateCommonNames *[]ClientCertificateCommonName `json:"clientCertificateCommonNames,omitempty"`
	// FabricSettings - The list of custom fabric settings to configure the cluster.
	FabricSettings *[]SettingsSectionDescription `json:"fabricSettings,omitempty"`
	// ReverseProxyCertificate - The server certificate used by reverse proxy.
	ReverseProxyCertificate *CertificateDescription `json:"reverseProxyCertificate,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"`
	// AzureActiveDirectory - The AAD authentication settings of the cluster.
	AzureActiveDirectory *AzureActiveDirectory `json:"azureActiveDirectory,omitempty"`
	// ProvisioningState - The provisioning state of the cluster resource. Possible values include: 'Updating', 'Succeeded', 'Failed', 'Canceled'
	ProvisioningState ProvisioningState `json:"provisioningState,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"`
	// DiagnosticsStorageAccountConfig - The storage account information for storing Service Fabric diagnostic logs.
	DiagnosticsStorageAccountConfig *DiagnosticsStorageAccountConfig `json:"diagnosticsStorageAccountConfig,omitempty"`
	// UpgradeDescription - The policy to use when upgrading the cluster.
	UpgradeDescription *ClusterUpgradePolicy `json:"upgradeDescription,omitempty"`
	// AddOnFeatures - The list of add-on features to enable in the cluster.
	AddOnFeatures *[]string `json:"addOnFeatures,omitempty"`
}

ClusterProperties describes the cluster resource properties.

type ClusterPropertiesUpdateParameters

type ClusterPropertiesUpdateParameters struct {
	// ReliabilityLevel - The reliability level sets the replica set size of system services. Learn about [ReliabilityLevel](https://docs.microsoft.com/en-us/azure/service-fabric/service-fabric-cluster-capacity). Possible values include: 'ReliabilityLevel1Bronze', 'ReliabilityLevel1Silver', 'ReliabilityLevel1Gold'
	ReliabilityLevel ReliabilityLevel1 `json:"reliabilityLevel,omitempty"`
	// UpgradeMode - The upgrade mode of the cluster. This indicates if the cluster should be automatically upgraded when new Service Fabric runtime version is available. Possible values include: 'UpgradeMode1Automatic', 'UpgradeMode1Manual'
	UpgradeMode UpgradeMode1 `json:"upgradeMode,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"`
	// 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"`
	// 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"`
	// 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"`
	// FabricSettings - The list of custom fabric settings to configure the cluster. This will overwrite the existing list.
	FabricSettings *[]SettingsSectionDescription `json:"fabricSettings,omitempty"`
	// ReverseProxyCertificate - The server certificate used by reverse proxy.
	ReverseProxyCertificate *CertificateDescription `json:"reverseProxyCertificate,omitempty"`
	// NodeTypes - The list of node types in the cluster. This will overwrite the existing list.
	NodeTypes *[]NodeTypeDescription `json:"nodeTypes,omitempty"`
	// UpgradeDescription - The policy to use when upgrading the cluster.
	UpgradeDescription *ClusterUpgradePolicy `json:"upgradeDescription,omitempty"`
	// AddOnFeatures - The list of add-on features to enable in the cluster.
	AddOnFeatures *[]string `json:"addOnFeatures,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"
)

type ClusterUpdateParameters

type ClusterUpdateParameters struct {
	*ClusterPropertiesUpdateParameters `json:"properties,omitempty"`
	// Tags - Cluster update parameters
	Tags map[string]*string `json:"tags"`
}

ClusterUpdateParameters cluster update request

func (ClusterUpdateParameters) MarshalJSON

func (cup ClusterUpdateParameters) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ClusterUpdateParameters.

func (*ClusterUpdateParameters) UnmarshalJSON

func (cup *ClusterUpdateParameters) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for ClusterUpdateParameters struct.

type 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"`
}

ClusterUpgradeDeltaHealthPolicy describes the delta health policies for the cluster upgrade.

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 revent 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 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 azure Service Fabric Resource Provider API Client

func NewClusterVersionsClient

func NewClusterVersionsClient() ClusterVersionsClient

NewClusterVersionsClient creates an instance of the ClusterVersionsClient client.

func NewClusterVersionsClientWithBaseURI

func NewClusterVersionsClientWithBaseURI(baseURI string) ClusterVersionsClient

NewClusterVersionsClientWithBaseURI creates an instance of the ClusterVersionsClient client.

func (ClusterVersionsClient) Get

func (client ClusterVersionsClient) Get(ctx context.Context, location string, subscriptionID string, clusterVersion string) (result ClusterCodeVersionsListResult, err error)

Get get cluster code versions by location

location is the location for the cluster code versions, this is different from cluster location subscriptionID is the customer subscription identifier clusterVersion is the cluster code version

func (ClusterVersionsClient) GetByEnvironment

func (client ClusterVersionsClient) GetByEnvironment(ctx context.Context, location string, environment string, subscriptionID string, clusterVersion string) (result ClusterCodeVersionsListResult, err error)

GetByEnvironment get cluster code versions by environment

location is the location for the cluster code versions, this is different from cluster location environment is cluster operating system, the default means all subscriptionID is the customer subscription identifier clusterVersion is the cluster code version

func (ClusterVersionsClient) GetByEnvironmentPreparer

func (client ClusterVersionsClient) GetByEnvironmentPreparer(ctx context.Context, location string, environment string, subscriptionID 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, subscriptionID 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

func (client ClusterVersionsClient) GetSender(req *http.Request) (*http.Response, error)

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, subscriptionID string) (result ClusterCodeVersionsListResult, err error)

List list cluster code versions by location

location is the location for the cluster code versions, this is different from cluster location subscriptionID is the customer subscription identifier

func (ClusterVersionsClient) ListByEnvironment

func (client ClusterVersionsClient) ListByEnvironment(ctx context.Context, location string, environment string, subscriptionID string) (result ClusterCodeVersionsListResult, err error)

ListByEnvironment list cluster code versions by environment

location is the location for the cluster code versions, this is different from cluster location environment is cluster operating system, the default means all subscriptionID is the customer subscription identifier

func (ClusterVersionsClient) ListByEnvironmentPreparer

func (client ClusterVersionsClient) ListByEnvironmentPreparer(ctx context.Context, location string, environment string, subscriptionID 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, subscriptionID 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

func (client ClusterVersionsClient) ListSender(req *http.Request) (*http.Response, error)

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 azure Service Fabric Resource Provider API Client

func NewClustersClient

func NewClustersClient() ClustersClient

NewClustersClient creates an instance of the ClustersClient client.

func NewClustersClientWithBaseURI

func NewClustersClientWithBaseURI(baseURI string) ClustersClient

NewClustersClientWithBaseURI creates an instance of the ClustersClient client.

func (ClustersClient) Create

func (client ClustersClient) Create(ctx context.Context, resourceGroupName string, clusterName string, subscriptionID string, parameters Cluster) (result ClustersCreateFuture, err error)

Create create cluster resource

resourceGroupName is the name of the resource group. clusterName is the name of the cluster resource subscriptionID is the customer subscription identifier parameters is the cluster resource.

func (ClustersClient) CreatePreparer

func (client ClustersClient) CreatePreparer(ctx context.Context, resourceGroupName string, clusterName string, subscriptionID string, parameters Cluster) (*http.Request, error)

CreatePreparer prepares the Create request.

func (ClustersClient) CreateResponder

func (client ClustersClient) CreateResponder(resp *http.Response) (result Cluster, err error)

CreateResponder handles the response to the Create request. The method always closes the http.Response Body.

func (ClustersClient) CreateSender

func (client ClustersClient) CreateSender(req *http.Request) (future ClustersCreateFuture, err error)

CreateSender sends the Create 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, subscriptionID string) (result autorest.Response, err error)

Delete delete cluster resource

resourceGroupName is the name of the resource group. clusterName is the name of the cluster resource subscriptionID is the customer subscription identifier

func (ClustersClient) DeletePreparer

func (client ClustersClient) DeletePreparer(ctx context.Context, resourceGroupName string, clusterName string, subscriptionID 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

func (client ClustersClient) DeleteSender(req *http.Request) (*http.Response, error)

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, subscriptionID string) (result Cluster, err error)

Get get cluster resource

resourceGroupName is the name of the resource group. clusterName is the name of the cluster resource subscriptionID is the customer subscription identifier

func (ClustersClient) GetPreparer

func (client ClustersClient) GetPreparer(ctx context.Context, resourceGroupName string, clusterName string, subscriptionID 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

func (client ClustersClient) GetSender(req *http.Request) (*http.Response, error)

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, subscriptionID string) (result ClusterListResult, err error)

List list cluster resource

subscriptionID is the customer subscription identifier

func (ClustersClient) ListByResourceGroup

func (client ClustersClient) ListByResourceGroup(ctx context.Context, resourceGroupName string, subscriptionID string) (result ClusterListResult, err error)

ListByResourceGroup list cluster resource by resource group

resourceGroupName is the name of the resource group. subscriptionID is the customer subscription identifier

func (ClustersClient) ListByResourceGroupPreparer

func (client ClustersClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string, subscriptionID 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

func (client ClustersClient) ListByResourceGroupSender(req *http.Request) (*http.Response, error)

ListByResourceGroupSender sends the ListByResourceGroup request. The method will close the http.Response Body if it receives an error.

func (ClustersClient) ListPreparer

func (client ClustersClient) ListPreparer(ctx context.Context, subscriptionID string) (*http.Request, error)

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

func (client ClustersClient) ListSender(req *http.Request) (*http.Response, error)

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, subscriptionID string, parameters ClusterUpdateParameters) (result ClustersUpdateFuture, err error)

Update update cluster configuration

resourceGroupName is the name of the resource group. clusterName is the name of the cluster resource subscriptionID is the customer subscription identifier parameters is 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, subscriptionID 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 ClustersCreateFuture

type ClustersCreateFuture struct {
	azure.Future
	// contains filtered or unexported fields
}

ClustersCreateFuture an abstraction for monitoring and retrieving the results of a long-running operation.

func (ClustersCreateFuture) Result

func (future ClustersCreateFuture) 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

type ClustersUpdateFuture struct {
	azure.Future
	// contains filtered or unexported fields
}

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 DefaultMoveCost

type DefaultMoveCost string

DefaultMoveCost enumerates the values for default move cost.

const (
	// High ...
	High DefaultMoveCost = "High"
	// Low ...
	Low DefaultMoveCost = "Low"
	// Medium ...
	Medium DefaultMoveCost = "Medium"
	// Zero ...
	Zero DefaultMoveCost = "Zero"
)

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"
)

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"
)

type ErrorModel

type ErrorModel struct {
	// Code - The error code.
	Code *string `json:"code,omitempty"`
	// Message - The error message.
	Message *string `json:"message,omitempty"`
}

ErrorModel the error details.

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 PartitionScheme `json:"PartitionScheme,omitempty"`
}

NamedPartitionSchemeDescription describes the named partition scheme of the service.

func (NamedPartitionSchemeDescription) AsBasicPartitionSchemeDescription

func (npsd NamedPartitionSchemeDescription) AsBasicPartitionSchemeDescription() (BasicPartitionSchemeDescription, bool)

AsBasicPartitionSchemeDescription is the BasicPartitionSchemeDescription implementation for NamedPartitionSchemeDescription.

func (NamedPartitionSchemeDescription) AsNamedPartitionSchemeDescription

func (npsd NamedPartitionSchemeDescription) AsNamedPartitionSchemeDescription() (*NamedPartitionSchemeDescription, bool)

AsNamedPartitionSchemeDescription is the BasicPartitionSchemeDescription implementation for NamedPartitionSchemeDescription.

func (NamedPartitionSchemeDescription) AsPartitionSchemeDescription

func (npsd NamedPartitionSchemeDescription) AsPartitionSchemeDescription() (*PartitionSchemeDescription, bool)

AsPartitionSchemeDescription is the BasicPartitionSchemeDescription implementation for NamedPartitionSchemeDescription.

func (NamedPartitionSchemeDescription) AsSingletonPartitionSchemeDescription

func (npsd NamedPartitionSchemeDescription) AsSingletonPartitionSchemeDescription() (*SingletonPartitionSchemeDescription, bool)

AsSingletonPartitionSchemeDescription is the BasicPartitionSchemeDescription implementation for NamedPartitionSchemeDescription.

func (NamedPartitionSchemeDescription) AsUniformInt64RangePartitionSchemeDescription

func (npsd NamedPartitionSchemeDescription) AsUniformInt64RangePartitionSchemeDescription() (*UniformInt64RangePartitionSchemeDescription, bool)

AsUniformInt64RangePartitionSchemeDescription is the BasicPartitionSchemeDescription implementation for NamedPartitionSchemeDescription.

func (NamedPartitionSchemeDescription) MarshalJSON

func (npsd NamedPartitionSchemeDescription) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for NamedPartitionSchemeDescription.

type NodeTypeDescription

type NodeTypeDescription struct {
	// Name - The name of the node type.
	Name *string `json:"name,omitempty"`
	// PlacementProperties - The placement tags applied to nodes in the node type, which can be used to indicate where certain services (workload) should run.
	PlacementProperties map[string]*string `json:"placementProperties"`
	// Capacities - The capacity tags applied to the nodes in the node type, the cluster resource manager uses these tags to understand how much resource a node has.
	Capacities map[string]*string `json:"capacities"`
	// ClientConnectionEndpointPort - The TCP cluster management endpoint port.
	ClientConnectionEndpointPort *int32 `json:"clientConnectionEndpointPort,omitempty"`
	// HTTPGatewayEndpointPort - The HTTP cluster management endpoint port.
	HTTPGatewayEndpointPort *int32 `json:"httpGatewayEndpointPort,omitempty"`
	// DurabilityLevel - Possible values include: '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 empheral 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 Service Fabric operations supported by the Microsoft.ServiceFabric resource provider.
	Value *[]OperationResult `json:"value,omitempty"`
	// NextLink - 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 operations.

func (OperationListResult) IsEmpty

func (olr OperationListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type OperationListResultIterator

type OperationListResultIterator struct {
	// contains filtered or unexported fields
}

OperationListResultIterator provides access to a complete listing of OperationResult values.

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.

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

Response returns the raw server response from the last page request.

func (OperationListResultIterator) Value

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 (*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.

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

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 azure Service Fabric Resource Provider API Client

func NewOperationsClient

func NewOperationsClient() OperationsClient

NewOperationsClient creates an instance of the OperationsClient client.

func NewOperationsClientWithBaseURI

func NewOperationsClientWithBaseURI(baseURI string) OperationsClient

NewOperationsClientWithBaseURI creates an instance of the OperationsClient client.

func (OperationsClient) List

func (client OperationsClient) List(ctx context.Context) (result OperationListResultPage, err error)

List sends the list request.

func (OperationsClient) ListComplete

func (client OperationsClient) ListComplete(ctx context.Context) (result OperationListResultIterator, err error)

ListComplete enumerates all values, automatically crossing page boundaries as required.

func (OperationsClient) ListPreparer

func (client OperationsClient) ListPreparer(ctx context.Context) (*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

func (client OperationsClient) ListSender(req *http.Request) (*http.Response, error)

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 (
	// PartitionSchemeNamed ...
	PartitionSchemeNamed PartitionScheme = "Named"
	// PartitionSchemePartitionSchemeDescription ...
	PartitionSchemePartitionSchemeDescription PartitionScheme = "PartitionSchemeDescription"
	// PartitionSchemeSingleton ...
	PartitionSchemeSingleton PartitionScheme = "Singleton"
	// PartitionSchemeUniformInt64Range ...
	PartitionSchemeUniformInt64Range PartitionScheme = "UniformInt64Range"
)

type PartitionSchemeDescription

type PartitionSchemeDescription struct {
	// PartitionScheme - Possible values include: 'PartitionSchemePartitionSchemeDescription', 'PartitionSchemeNamed', 'PartitionSchemeSingleton', 'PartitionSchemeUniformInt64Range'
	PartitionScheme PartitionScheme `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"
)

type ProxyResource

type ProxyResource struct {
	// ID - Azure resource ID.
	ID *string `json:"id,omitempty"`
	// Name - Azure resource name.
	Name *string `json:"name,omitempty"`
	// Type - Azure resource type.
	Type *string `json:"type,omitempty"`
	// Location - Resource location.
	Location *string `json:"location,omitempty"`
}

ProxyResource the resource model definition for proxy-only resource.

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"
)

type ReliabilityLevel1

type ReliabilityLevel1 string

ReliabilityLevel1 enumerates the values for reliability level 1.

const (
	// ReliabilityLevel1Bronze ...
	ReliabilityLevel1Bronze ReliabilityLevel1 = "Bronze"
	// ReliabilityLevel1Gold ...
	ReliabilityLevel1Gold ReliabilityLevel1 = "Gold"
	// ReliabilityLevel1Silver ...
	ReliabilityLevel1Silver ReliabilityLevel1 = "Silver"
)

type Resource

type Resource struct {
	// ID - Azure resource ID.
	ID *string `json:"id,omitempty"`
	// Name - Azure resource name.
	Name *string `json:"name,omitempty"`
	// Type - Azure resource type.
	Type *string `json:"type,omitempty"`
	// Location - Resource location.
	Location *string `json:"location,omitempty"`
	// Tags - Resource tags.
	Tags map[string]*string `json:"tags"`
}

Resource the resource model definition.

func (Resource) MarshalJSON

func (r Resource) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for Resource.

type RollingUpgradeMonitoringPolicy

type RollingUpgradeMonitoringPolicy struct {
	HealthCheckWaitDuration   *string `json:"healthCheckWaitDuration,omitempty"`
	HealthCheckStableDuration *string `json:"healthCheckStableDuration,omitempty"`
	HealthCheckRetryTimeout   *string `json:"healthCheckRetryTimeout,omitempty"`
	UpgradeTimeout            *string `json:"upgradeTimeout,omitempty"`
	UpgradeDomainTimeout      *string `json:"upgradeDomainTimeout,omitempty"`
}

RollingUpgradeMonitoringPolicy the policy used for monitoring the application upgrade

type Scheme

type Scheme string

Scheme enumerates the values for scheme.

const (
	// Affinity ...
	Affinity Scheme = "Affinity"
	// AlignedAffinity ...
	AlignedAffinity Scheme = "AlignedAffinity"
	// Invalid ...
	Invalid Scheme = "Invalid"
	// NonAlignedAffinity ...
	NonAlignedAffinity Scheme = "NonAlignedAffinity"
)

type ServiceClient

type ServiceClient struct {
	BaseClient
}

ServiceClient is the azure Service Fabric Resource Provider API Client

func NewServiceClient

func NewServiceClient() ServiceClient

NewServiceClient creates an instance of the ServiceClient client.

func NewServiceClientWithBaseURI

func NewServiceClientWithBaseURI(baseURI string) ServiceClient

NewServiceClientWithBaseURI creates an instance of the ServiceClient client.

func (ServiceClient) Delete

func (client ServiceClient) Delete(ctx context.Context, subscriptionID string, resourceGroupName string, clusterName string, applicationName string, serviceName string) (result ServiceDeleteFuture, err error)

Delete deletes a service resource with the specified name.

subscriptionID is the customer subscription identifier resourceGroupName is the name of the resource group. clusterName is the name of the cluster resource applicationName is the name of the application resource. serviceName is the name of the service resource in the format of {applicationName}~{serviceName}.

func (ServiceClient) DeletePreparer

func (client ServiceClient) DeletePreparer(ctx context.Context, subscriptionID string, resourceGroupName string, clusterName string, applicationName string, serviceName string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (ServiceClient) DeleteResponder

func (client ServiceClient) 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 (ServiceClient) DeleteSender

func (client ServiceClient) DeleteSender(req *http.Request) (future ServiceDeleteFuture, err error)

DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.

func (ServiceClient) Get

func (client ServiceClient) Get(ctx context.Context, subscriptionID string, resourceGroupName string, clusterName string, applicationName string, serviceName string) (result ServiceResource, err error)

Get returns a service resource with the specified name.

subscriptionID is the customer subscription identifier resourceGroupName is the name of the resource group. clusterName is the name of the cluster resource applicationName is the name of the application resource. serviceName is the name of the service resource in the format of {applicationName}~{serviceName}.

func (ServiceClient) GetPreparer

func (client ServiceClient) GetPreparer(ctx context.Context, subscriptionID string, resourceGroupName string, clusterName string, applicationName string, serviceName string) (*http.Request, error)

GetPreparer prepares the Get request.

func (ServiceClient) GetResponder

func (client ServiceClient) 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 (ServiceClient) GetSender

func (client ServiceClient) GetSender(req *http.Request) (*http.Response, error)

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

func (ServiceClient) List

func (client ServiceClient) List(ctx context.Context, subscriptionID string, resourceGroupName string, clusterName string, applicationName string) (result ServiceResourceList, err error)

List returns all service resources in the specified application.

subscriptionID is the customer subscription identifier resourceGroupName is the name of the resource group. clusterName is the name of the cluster resource applicationName is the name of the application resource.

func (ServiceClient) ListPreparer

func (client ServiceClient) ListPreparer(ctx context.Context, subscriptionID string, resourceGroupName string, clusterName string, applicationName string) (*http.Request, error)

ListPreparer prepares the List request.

func (ServiceClient) ListResponder

func (client ServiceClient) 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 (ServiceClient) ListSender

func (client ServiceClient) ListSender(req *http.Request) (*http.Response, error)

ListSender sends the List request. The method will close the http.Response Body if it receives an error.

func (ServiceClient) Patch

func (client ServiceClient) Patch(ctx context.Context, subscriptionID string, resourceGroupName string, clusterName string, applicationName string, serviceName string, parameters ServiceResourceUpdate) (result ServicePatchFuture, err error)

Patch updates a service resource with the specified name.

subscriptionID is the customer subscription identifier resourceGroupName is the name of the resource group. clusterName is the name of the cluster resource applicationName is the name of the application resource. serviceName is the name of the service resource in the format of {applicationName}~{serviceName}. parameters is the service resource for patch operations.

func (ServiceClient) PatchPreparer

func (client ServiceClient) PatchPreparer(ctx context.Context, subscriptionID string, resourceGroupName string, clusterName string, applicationName string, serviceName string, parameters ServiceResourceUpdate) (*http.Request, error)

PatchPreparer prepares the Patch request.

func (ServiceClient) PatchResponder

func (client ServiceClient) PatchResponder(resp *http.Response) (result ServiceResourceUpdate, err error)

PatchResponder handles the response to the Patch request. The method always closes the http.Response Body.

func (ServiceClient) PatchSender

func (client ServiceClient) PatchSender(req *http.Request) (future ServicePatchFuture, err error)

PatchSender sends the Patch request. The method will close the http.Response Body if it receives an error.

func (ServiceClient) Put

func (client ServiceClient) Put(ctx context.Context, subscriptionID string, resourceGroupName string, clusterName string, applicationName string, serviceName string, parameters ServiceResource) (result ServicePutFuture, err error)

Put creates or updates a service resource with the specified name.

subscriptionID is the customer subscription identifier resourceGroupName is the name of the resource group. clusterName is the name of the cluster resource applicationName is the name of the application resource. serviceName is the name of the service resource in the format of {applicationName}~{serviceName}. parameters is the service resource.

func (ServiceClient) PutPreparer

func (client ServiceClient) PutPreparer(ctx context.Context, subscriptionID string, resourceGroupName string, clusterName string, applicationName string, serviceName string, parameters ServiceResource) (*http.Request, error)

PutPreparer prepares the Put request.

func (ServiceClient) PutResponder

func (client ServiceClient) PutResponder(resp *http.Response) (result ServiceResource, err error)

PutResponder handles the response to the Put request. The method always closes the http.Response Body.

func (ServiceClient) PutSender

func (client ServiceClient) PutSender(req *http.Request) (future ServicePutFuture, err error)

PutSender sends the Put request. The method will close the http.Response Body if it receives an error.

type ServiceCorrelationDescription

type ServiceCorrelationDescription struct {
	// Scheme - Possible values include: 'Invalid', 'Affinity', 'AlignedAffinity', 'NonAlignedAffinity'
	Scheme      Scheme  `json:"Scheme,omitempty"`
	ServiceName *string `json:"ServiceName,omitempty"`
}

ServiceCorrelationDescription creates a particular correlation between services.

type ServiceDeleteFuture

type ServiceDeleteFuture struct {
	azure.Future
	// contains filtered or unexported fields
}

ServiceDeleteFuture an abstraction for monitoring and retrieving the results of a long-running operation.

func (ServiceDeleteFuture) Result

func (future ServiceDeleteFuture) Result(client ServiceClient) (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 ServiceKind

type ServiceKind string

ServiceKind enumerates the values for service kind.

const (
	// ServiceKindServiceProperties ...
	ServiceKindServiceProperties ServiceKind = "ServiceProperties"
	// ServiceKindStateful ...
	ServiceKindStateful ServiceKind = "Stateful"
	// ServiceKindStateless ...
	ServiceKindStateless ServiceKind = "Stateless"
)

type ServiceKindBasicServiceUpdateProperties

type ServiceKindBasicServiceUpdateProperties string

ServiceKindBasicServiceUpdateProperties enumerates the values for service kind basic service update properties.

const (
	// ServiceKindBasicServiceUpdatePropertiesServiceKindServiceUpdateProperties ...
	ServiceKindBasicServiceUpdatePropertiesServiceKindServiceUpdateProperties ServiceKindBasicServiceUpdateProperties = "ServiceUpdateProperties"
	// ServiceKindBasicServiceUpdatePropertiesServiceKindStateful ...
	ServiceKindBasicServiceUpdatePropertiesServiceKindStateful ServiceKindBasicServiceUpdateProperties = "Stateful"
	// ServiceKindBasicServiceUpdatePropertiesServiceKindStateless ...
	ServiceKindBasicServiceUpdatePropertiesServiceKindStateless ServiceKindBasicServiceUpdateProperties = "Stateless"
)

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 - Possible values include: 'WeightZero', 'WeightLow', 'WeightMedium', 'WeightHigh'
	Weight Weight `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 ServicePatchFuture

type ServicePatchFuture struct {
	azure.Future
	// contains filtered or unexported fields
}

ServicePatchFuture an abstraction for monitoring and retrieving the results of a long-running operation.

func (ServicePatchFuture) Result

func (future ServicePatchFuture) Result(client ServiceClient) (sru ServiceResourceUpdate, err error)

Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.

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 ServiceProperties

type ServiceProperties struct {
	// ProvisioningState - The current deployment or provisioning state, which only appears in the response
	ProvisioningState *string `json:"provisioningState,omitempty"`
	// ServiceTypeName - The name of the service type
	ServiceTypeName      *string                         `json:"serviceTypeName,omitempty"`
	PartitionDescription BasicPartitionSchemeDescription `json:"partitionDescription,omitempty"`
	// ServiceKind - Possible values include: 'ServiceKindServiceProperties', 'ServiceKindStateless', 'ServiceKindStateful'
	ServiceKind ServiceKind `json:"serviceKind,omitempty"`
	// PlacementConstraints - The placement constraints as a string. Placement constraints are boolean expressions on node properties and allow for restricting a service to particular nodes based on the service requirements. For example, to place a service on nodes where NodeType is blue specify the following: "NodeColor == blue)".
	PlacementConstraints     *string                                   `json:"placementConstraints,omitempty"`
	CorrelationScheme        *[]ServiceCorrelationDescription          `json:"correlationScheme,omitempty"`
	ServiceLoadMetrics       *[]ServiceLoadMetricDescription           `json:"serviceLoadMetrics,omitempty"`
	ServicePlacementPolicies *[]BasicServicePlacementPolicyDescription `json:"servicePlacementPolicies,omitempty"`
	// DefaultMoveCost - Possible values include: 'Zero', 'Low', 'Medium', 'High'
	DefaultMoveCost DefaultMoveCost `json:"defaultMoveCost,omitempty"`
}

ServiceProperties the service resource properties.

func (ServiceProperties) AsBasicServiceProperties

func (sp ServiceProperties) AsBasicServiceProperties() (BasicServiceProperties, bool)

AsBasicServiceProperties is the BasicServicePropertiesBase implementation for ServiceProperties.

func (ServiceProperties) AsBasicServiceUpdateProperties

func (sp ServiceProperties) AsBasicServiceUpdateProperties() (BasicServiceUpdateProperties, bool)

AsBasicServiceUpdateProperties is the BasicServicePropertiesBase implementation for ServiceProperties.

func (ServiceProperties) AsServiceProperties

func (sp ServiceProperties) AsServiceProperties() (*ServiceProperties, bool)

AsServiceProperties is the BasicServicePropertiesBase implementation for ServiceProperties.

func (ServiceProperties) AsServiceUpdateProperties

func (sp ServiceProperties) AsServiceUpdateProperties() (*ServiceUpdateProperties, bool)

AsServiceUpdateProperties is the BasicServicePropertiesBase implementation for ServiceProperties.

func (ServiceProperties) AsStatefulServiceProperties

func (sp ServiceProperties) AsStatefulServiceProperties() (*StatefulServiceProperties, bool)

AsStatefulServiceProperties is the BasicServicePropertiesBase implementation for ServiceProperties.

func (ServiceProperties) AsStatefulServiceUpdateProperties

func (sp ServiceProperties) AsStatefulServiceUpdateProperties() (*StatefulServiceUpdateProperties, bool)

AsStatefulServiceUpdateProperties is the BasicServicePropertiesBase implementation for ServiceProperties.

func (ServiceProperties) AsStatelessServiceProperties

func (sp ServiceProperties) AsStatelessServiceProperties() (*StatelessServiceProperties, bool)

AsStatelessServiceProperties is the BasicServicePropertiesBase implementation for ServiceProperties.

func (ServiceProperties) AsStatelessServiceUpdateProperties

func (sp ServiceProperties) AsStatelessServiceUpdateProperties() (*StatelessServiceUpdateProperties, bool)

AsStatelessServiceUpdateProperties is the BasicServicePropertiesBase implementation for ServiceProperties.

func (ServiceProperties) MarshalJSON

func (sp ServiceProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ServiceProperties.

func (*ServiceProperties) UnmarshalJSON

func (sp *ServiceProperties) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for ServiceProperties struct.

type ServicePropertiesBase

type ServicePropertiesBase struct {
	// PlacementConstraints - The placement constraints as a string. Placement constraints are boolean expressions on node properties and allow for restricting a service to particular nodes based on the service requirements. For example, to place a service on nodes where NodeType is blue specify the following: "NodeColor == blue)".
	PlacementConstraints     *string                                   `json:"placementConstraints,omitempty"`
	CorrelationScheme        *[]ServiceCorrelationDescription          `json:"correlationScheme,omitempty"`
	ServiceLoadMetrics       *[]ServiceLoadMetricDescription           `json:"serviceLoadMetrics,omitempty"`
	ServicePlacementPolicies *[]BasicServicePlacementPolicyDescription `json:"servicePlacementPolicies,omitempty"`
	// DefaultMoveCost - Possible values include: 'Zero', 'Low', 'Medium', 'High'
	DefaultMoveCost DefaultMoveCost `json:"defaultMoveCost,omitempty"`
}

ServicePropertiesBase the common service resource properties.

func (*ServicePropertiesBase) UnmarshalJSON

func (spb *ServicePropertiesBase) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for ServicePropertiesBase struct.

type ServicePutFuture

type ServicePutFuture struct {
	azure.Future
	// contains filtered or unexported fields
}

ServicePutFuture an abstraction for monitoring and retrieving the results of a long-running operation.

func (ServicePutFuture) Result

func (future ServicePutFuture) Result(client ServiceClient) (sr ServiceResource, err error)

Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.

type ServiceResource

type ServiceResource struct {
	autorest.Response      `json:"-"`
	BasicServiceProperties `json:"properties,omitempty"`
	// ID - Azure resource ID.
	ID *string `json:"id,omitempty"`
	// Name - Azure resource name.
	Name *string `json:"name,omitempty"`
	// Type - Azure resource type.
	Type *string `json:"type,omitempty"`
	// Location - Resource location.
	Location *string `json:"location,omitempty"`
}

ServiceResource the service resource.

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"`
}

ServiceResourceList the list of service resources.

type ServiceResourceUpdate

type ServiceResourceUpdate struct {
	autorest.Response            `json:"-"`
	BasicServiceUpdateProperties `json:"properties,omitempty"`
	// ID - Azure resource ID.
	ID *string `json:"id,omitempty"`
	// Name - Azure resource name.
	Name *string `json:"name,omitempty"`
	// Type - Azure resource type.
	Type *string `json:"type,omitempty"`
	// Location - Resource location.
	Location *string `json:"location,omitempty"`
}

ServiceResourceUpdate the service resource for patch operations.

func (*ServiceResourceUpdate) UnmarshalJSON

func (sru *ServiceResourceUpdate) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for ServiceResourceUpdate struct.

type ServiceTypeDeltaHealthPolicy

type ServiceTypeDeltaHealthPolicy struct {
	// MaxPercentDeltaUnhealthyServices - Maximum percentage of unhealthy services in cluster
	MaxPercentDeltaUnhealthyServices *int32 `json:"maxPercentDeltaUnhealthyServices,omitempty"`
}

ServiceTypeDeltaHealthPolicy service health policy

type ServiceTypeHealthPolicy

type ServiceTypeHealthPolicy struct {
	// MaxPercentUnhealthyPartitionsPerService - The maximum allowed percentage of unhealthy partitions per service. Allowed values are Byte values from zero to 100
	// The percentage represents the maximum tolerated percentage of partitions that can be unhealthy before the service is considered in error.
	// If the percentage is respected but there is at least one unhealthy partition, the health is evaluated as Warning.
	// The percentage is calculated by dividing the number of unhealthy partitions over the total number of partitions in the service.
	// The computation rounds up to tolerate one failure on small numbers of partitions. Default percentage is zero.
	MaxPercentUnhealthyPartitionsPerService *int32 `json:"MaxPercentUnhealthyPartitionsPerService,omitempty"`
	// MaxPercentUnhealthyReplicasPerPartition - The maximum allowed percentage of unhealthy replicas per partition. Allowed values are Byte values from zero to 100.
	// The percentage represents the maximum tolerated percentage of replicas that can be unhealthy before the partition is considered in error.
	// If the percentage is respected but there is at least one unhealthy replica, the health is evaluated as Warning.
	// The percentage is calculated by dividing the number of unhealthy replicas over the total number of replicas in the partition.
	// The computation rounds up to tolerate one failure on small numbers of replicas. Default percentage is zero.
	MaxPercentUnhealthyReplicasPerPartition *int32 `json:"MaxPercentUnhealthyReplicasPerPartition,omitempty"`
	// MaxPercentUnhealthyServices - The maximum maximum allowed percentage of unhealthy services. Allowed values are Byte values from zero to 100.
	// The percentage represents the maximum tolerated percentage of services that can be unhealthy before the application is considered in error.
	// If the percentage is respected but there is at least one unhealthy service, the health is evaluated as Warning.
	// This is calculated by dividing the number of unhealthy services of the specific service type over the total number of services of the specific service type.
	// The computation rounds up to tolerate one failure on small numbers of services. Default percentage is zero.
	MaxPercentUnhealthyServices *int32 `json:"MaxPercentUnhealthyServices,omitempty"`
}

ServiceTypeHealthPolicy represents the health policy used to evaluate the health of services belonging to a service type.

type ServiceTypeHealthPolicyMapItem

type ServiceTypeHealthPolicyMapItem struct {
	// Key - The key of the service type health policy map item. This is the name of the service type.
	Key   *string                  `json:"Key,omitempty"`
	Value *ServiceTypeHealthPolicy `json:"Value,omitempty"`
}

ServiceTypeHealthPolicyMapItem defines an item in ServiceTypeHealthPolicyMap.

type ServiceUpdateProperties

type ServiceUpdateProperties struct {
	// ServiceKind - Possible values include: 'ServiceKindBasicServiceUpdatePropertiesServiceKindServiceUpdateProperties', 'ServiceKindBasicServiceUpdatePropertiesServiceKindStateless', 'ServiceKindBasicServiceUpdatePropertiesServiceKindStateful'
	ServiceKind ServiceKindBasicServiceUpdateProperties `json:"serviceKind,omitempty"`
	// PlacementConstraints - The placement constraints as a string. Placement constraints are boolean expressions on node properties and allow for restricting a service to particular nodes based on the service requirements. For example, to place a service on nodes where NodeType is blue specify the following: "NodeColor == blue)".
	PlacementConstraints     *string                                   `json:"placementConstraints,omitempty"`
	CorrelationScheme        *[]ServiceCorrelationDescription          `json:"correlationScheme,omitempty"`
	ServiceLoadMetrics       *[]ServiceLoadMetricDescription           `json:"serviceLoadMetrics,omitempty"`
	ServicePlacementPolicies *[]BasicServicePlacementPolicyDescription `json:"servicePlacementPolicies,omitempty"`
	// DefaultMoveCost - Possible values include: 'Zero', 'Low', 'Medium', 'High'
	DefaultMoveCost DefaultMoveCost `json:"defaultMoveCost,omitempty"`
}

ServiceUpdateProperties the service resource properties for patch operations.

func (ServiceUpdateProperties) AsBasicServiceProperties

func (sup ServiceUpdateProperties) AsBasicServiceProperties() (BasicServiceProperties, bool)

AsBasicServiceProperties is the BasicServicePropertiesBase implementation for ServiceUpdateProperties.

func (ServiceUpdateProperties) AsBasicServiceUpdateProperties

func (sup ServiceUpdateProperties) AsBasicServiceUpdateProperties() (BasicServiceUpdateProperties, bool)

AsBasicServiceUpdateProperties is the BasicServicePropertiesBase implementation for ServiceUpdateProperties.

func (ServiceUpdateProperties) AsServiceProperties

func (sup ServiceUpdateProperties) AsServiceProperties() (*ServiceProperties, bool)

AsServiceProperties is the BasicServicePropertiesBase implementation for ServiceUpdateProperties.

func (ServiceUpdateProperties) AsServiceUpdateProperties

func (sup ServiceUpdateProperties) AsServiceUpdateProperties() (*ServiceUpdateProperties, bool)

AsServiceUpdateProperties is the BasicServicePropertiesBase implementation for ServiceUpdateProperties.

func (ServiceUpdateProperties) AsStatefulServiceProperties

func (sup ServiceUpdateProperties) AsStatefulServiceProperties() (*StatefulServiceProperties, bool)

AsStatefulServiceProperties is the BasicServicePropertiesBase implementation for ServiceUpdateProperties.

func (ServiceUpdateProperties) AsStatefulServiceUpdateProperties

func (sup ServiceUpdateProperties) AsStatefulServiceUpdateProperties() (*StatefulServiceUpdateProperties, bool)

AsStatefulServiceUpdateProperties is the BasicServicePropertiesBase implementation for ServiceUpdateProperties.

func (ServiceUpdateProperties) AsStatelessServiceProperties

func (sup ServiceUpdateProperties) AsStatelessServiceProperties() (*StatelessServiceProperties, bool)

AsStatelessServiceProperties is the BasicServicePropertiesBase implementation for ServiceUpdateProperties.

func (ServiceUpdateProperties) AsStatelessServiceUpdateProperties

func (sup ServiceUpdateProperties) AsStatelessServiceUpdateProperties() (*StatelessServiceUpdateProperties, bool)

AsStatelessServiceUpdateProperties is the BasicServicePropertiesBase implementation for ServiceUpdateProperties.

func (ServiceUpdateProperties) MarshalJSON

func (sup ServiceUpdateProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ServiceUpdateProperties.

func (*ServiceUpdateProperties) UnmarshalJSON

func (sup *ServiceUpdateProperties) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for ServiceUpdateProperties struct.

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 PartitionScheme `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 - The current deployment or provisioning state, which only appears in the response
	ProvisioningState *string `json:"provisioningState,omitempty"`
	// ServiceTypeName - The name of the service type
	ServiceTypeName      *string                         `json:"serviceTypeName,omitempty"`
	PartitionDescription BasicPartitionSchemeDescription `json:"partitionDescription,omitempty"`
	// ServiceKind - Possible values include: 'ServiceKindServiceProperties', 'ServiceKindStateless', 'ServiceKindStateful'
	ServiceKind ServiceKind `json:"serviceKind,omitempty"`
	// PlacementConstraints - The placement constraints as a string. Placement constraints are boolean expressions on node properties and allow for restricting a service to particular nodes based on the service requirements. For example, to place a service on nodes where NodeType is blue specify the following: "NodeColor == blue)".
	PlacementConstraints     *string                                   `json:"placementConstraints,omitempty"`
	CorrelationScheme        *[]ServiceCorrelationDescription          `json:"correlationScheme,omitempty"`
	ServiceLoadMetrics       *[]ServiceLoadMetricDescription           `json:"serviceLoadMetrics,omitempty"`
	ServicePlacementPolicies *[]BasicServicePlacementPolicyDescription `json:"servicePlacementPolicies,omitempty"`
	// DefaultMoveCost - Possible values include: 'Zero', 'Low', 'Medium', 'High'
	DefaultMoveCost DefaultMoveCost `json:"defaultMoveCost,omitempty"`
}

StatefulServiceProperties the properties of a stateful service resource.

func (StatefulServiceProperties) AsBasicServiceProperties

func (ssp StatefulServiceProperties) AsBasicServiceProperties() (BasicServiceProperties, bool)

AsBasicServiceProperties is the BasicServicePropertiesBase implementation for StatefulServiceProperties.

func (StatefulServiceProperties) AsBasicServiceUpdateProperties

func (ssp StatefulServiceProperties) AsBasicServiceUpdateProperties() (BasicServiceUpdateProperties, bool)

AsBasicServiceUpdateProperties is the BasicServicePropertiesBase implementation for StatefulServiceProperties.

func (StatefulServiceProperties) AsServiceProperties

func (ssp StatefulServiceProperties) AsServiceProperties() (*ServiceProperties, bool)

AsServiceProperties is the BasicServicePropertiesBase implementation for StatefulServiceProperties.

func (StatefulServiceProperties) AsServiceUpdateProperties

func (ssp StatefulServiceProperties) AsServiceUpdateProperties() (*ServiceUpdateProperties, bool)

AsServiceUpdateProperties is the BasicServicePropertiesBase implementation for StatefulServiceProperties.

func (StatefulServiceProperties) AsStatefulServiceProperties

func (ssp StatefulServiceProperties) AsStatefulServiceProperties() (*StatefulServiceProperties, bool)

AsStatefulServiceProperties is the BasicServicePropertiesBase implementation for StatefulServiceProperties.

func (StatefulServiceProperties) AsStatefulServiceUpdateProperties

func (ssp StatefulServiceProperties) AsStatefulServiceUpdateProperties() (*StatefulServiceUpdateProperties, bool)

AsStatefulServiceUpdateProperties is the BasicServicePropertiesBase implementation for StatefulServiceProperties.

func (StatefulServiceProperties) AsStatelessServiceProperties

func (ssp StatefulServiceProperties) AsStatelessServiceProperties() (*StatelessServiceProperties, bool)

AsStatelessServiceProperties is the BasicServicePropertiesBase implementation for StatefulServiceProperties.

func (StatefulServiceProperties) AsStatelessServiceUpdateProperties

func (ssp StatefulServiceProperties) AsStatelessServiceUpdateProperties() (*StatelessServiceUpdateProperties, bool)

AsStatelessServiceUpdateProperties is the BasicServicePropertiesBase 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: 'ServiceKindBasicServiceUpdatePropertiesServiceKindServiceUpdateProperties', 'ServiceKindBasicServiceUpdatePropertiesServiceKindStateless', 'ServiceKindBasicServiceUpdatePropertiesServiceKindStateful'
	ServiceKind ServiceKindBasicServiceUpdateProperties `json:"serviceKind,omitempty"`
	// PlacementConstraints - The placement constraints as a string. Placement constraints are boolean expressions on node properties and allow for restricting a service to particular nodes based on the service requirements. For example, to place a service on nodes where NodeType is blue specify the following: "NodeColor == blue)".
	PlacementConstraints     *string                                   `json:"placementConstraints,omitempty"`
	CorrelationScheme        *[]ServiceCorrelationDescription          `json:"correlationScheme,omitempty"`
	ServiceLoadMetrics       *[]ServiceLoadMetricDescription           `json:"serviceLoadMetrics,omitempty"`
	ServicePlacementPolicies *[]BasicServicePlacementPolicyDescription `json:"servicePlacementPolicies,omitempty"`
	// DefaultMoveCost - Possible values include: 'Zero', 'Low', 'Medium', 'High'
	DefaultMoveCost DefaultMoveCost `json:"defaultMoveCost,omitempty"`
}

StatefulServiceUpdateProperties the properties of a stateful service resource for patch operations.

func (StatefulServiceUpdateProperties) AsBasicServiceProperties

func (ssup StatefulServiceUpdateProperties) AsBasicServiceProperties() (BasicServiceProperties, bool)

AsBasicServiceProperties is the BasicServicePropertiesBase implementation for StatefulServiceUpdateProperties.

func (StatefulServiceUpdateProperties) AsBasicServiceUpdateProperties

func (ssup StatefulServiceUpdateProperties) AsBasicServiceUpdateProperties() (BasicServiceUpdateProperties, bool)

AsBasicServiceUpdateProperties is the BasicServicePropertiesBase implementation for StatefulServiceUpdateProperties.

func (StatefulServiceUpdateProperties) AsServiceProperties

func (ssup StatefulServiceUpdateProperties) AsServiceProperties() (*ServiceProperties, bool)

AsServiceProperties is the BasicServicePropertiesBase implementation for StatefulServiceUpdateProperties.

func (StatefulServiceUpdateProperties) AsServiceUpdateProperties

func (ssup StatefulServiceUpdateProperties) AsServiceUpdateProperties() (*ServiceUpdateProperties, bool)

AsServiceUpdateProperties is the BasicServicePropertiesBase implementation for StatefulServiceUpdateProperties.

func (StatefulServiceUpdateProperties) AsStatefulServiceProperties

func (ssup StatefulServiceUpdateProperties) AsStatefulServiceProperties() (*StatefulServiceProperties, bool)

AsStatefulServiceProperties is the BasicServicePropertiesBase implementation for StatefulServiceUpdateProperties.

func (StatefulServiceUpdateProperties) AsStatefulServiceUpdateProperties

func (ssup StatefulServiceUpdateProperties) AsStatefulServiceUpdateProperties() (*StatefulServiceUpdateProperties, bool)

AsStatefulServiceUpdateProperties is the BasicServicePropertiesBase implementation for StatefulServiceUpdateProperties.

func (StatefulServiceUpdateProperties) AsStatelessServiceProperties

func (ssup StatefulServiceUpdateProperties) AsStatelessServiceProperties() (*StatelessServiceProperties, bool)

AsStatelessServiceProperties is the BasicServicePropertiesBase implementation for StatefulServiceUpdateProperties.

func (StatefulServiceUpdateProperties) AsStatelessServiceUpdateProperties

func (ssup StatefulServiceUpdateProperties) AsStatelessServiceUpdateProperties() (*StatelessServiceUpdateProperties, bool)

AsStatelessServiceUpdateProperties is the BasicServicePropertiesBase 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 - The current deployment or provisioning state, which only appears in the response
	ProvisioningState *string `json:"provisioningState,omitempty"`
	// ServiceTypeName - The name of the service type
	ServiceTypeName      *string                         `json:"serviceTypeName,omitempty"`
	PartitionDescription BasicPartitionSchemeDescription `json:"partitionDescription,omitempty"`
	// ServiceKind - Possible values include: 'ServiceKindServiceProperties', 'ServiceKindStateless', 'ServiceKindStateful'
	ServiceKind ServiceKind `json:"serviceKind,omitempty"`
	// PlacementConstraints - The placement constraints as a string. Placement constraints are boolean expressions on node properties and allow for restricting a service to particular nodes based on the service requirements. For example, to place a service on nodes where NodeType is blue specify the following: "NodeColor == blue)".
	PlacementConstraints     *string                                   `json:"placementConstraints,omitempty"`
	CorrelationScheme        *[]ServiceCorrelationDescription          `json:"correlationScheme,omitempty"`
	ServiceLoadMetrics       *[]ServiceLoadMetricDescription           `json:"serviceLoadMetrics,omitempty"`
	ServicePlacementPolicies *[]BasicServicePlacementPolicyDescription `json:"servicePlacementPolicies,omitempty"`
	// DefaultMoveCost - Possible values include: 'Zero', 'Low', 'Medium', 'High'
	DefaultMoveCost DefaultMoveCost `json:"defaultMoveCost,omitempty"`
}

StatelessServiceProperties the properties of a stateless service resource.

func (StatelessServiceProperties) AsBasicServiceProperties

func (ssp StatelessServiceProperties) AsBasicServiceProperties() (BasicServiceProperties, bool)

AsBasicServiceProperties is the BasicServicePropertiesBase implementation for StatelessServiceProperties.

func (StatelessServiceProperties) AsBasicServiceUpdateProperties

func (ssp StatelessServiceProperties) AsBasicServiceUpdateProperties() (BasicServiceUpdateProperties, bool)

AsBasicServiceUpdateProperties is the BasicServicePropertiesBase implementation for StatelessServiceProperties.

func (StatelessServiceProperties) AsServiceProperties

func (ssp StatelessServiceProperties) AsServiceProperties() (*ServiceProperties, bool)

AsServiceProperties is the BasicServicePropertiesBase implementation for StatelessServiceProperties.

func (StatelessServiceProperties) AsServiceUpdateProperties

func (ssp StatelessServiceProperties) AsServiceUpdateProperties() (*ServiceUpdateProperties, bool)

AsServiceUpdateProperties is the BasicServicePropertiesBase implementation for StatelessServiceProperties.

func (StatelessServiceProperties) AsStatefulServiceProperties

func (ssp StatelessServiceProperties) AsStatefulServiceProperties() (*StatefulServiceProperties, bool)

AsStatefulServiceProperties is the BasicServicePropertiesBase implementation for StatelessServiceProperties.

func (StatelessServiceProperties) AsStatefulServiceUpdateProperties

func (ssp StatelessServiceProperties) AsStatefulServiceUpdateProperties() (*StatefulServiceUpdateProperties, bool)

AsStatefulServiceUpdateProperties is the BasicServicePropertiesBase implementation for StatelessServiceProperties.

func (StatelessServiceProperties) AsStatelessServiceProperties

func (ssp StatelessServiceProperties) AsStatelessServiceProperties() (*StatelessServiceProperties, bool)

AsStatelessServiceProperties is the BasicServicePropertiesBase implementation for StatelessServiceProperties.

func (StatelessServiceProperties) AsStatelessServiceUpdateProperties

func (ssp StatelessServiceProperties) AsStatelessServiceUpdateProperties() (*StatelessServiceUpdateProperties, bool)

AsStatelessServiceUpdateProperties is the BasicServicePropertiesBase 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: 'ServiceKindBasicServiceUpdatePropertiesServiceKindServiceUpdateProperties', 'ServiceKindBasicServiceUpdatePropertiesServiceKindStateless', 'ServiceKindBasicServiceUpdatePropertiesServiceKindStateful'
	ServiceKind ServiceKindBasicServiceUpdateProperties `json:"serviceKind,omitempty"`
	// PlacementConstraints - The placement constraints as a string. Placement constraints are boolean expressions on node properties and allow for restricting a service to particular nodes based on the service requirements. For example, to place a service on nodes where NodeType is blue specify the following: "NodeColor == blue)".
	PlacementConstraints     *string                                   `json:"placementConstraints,omitempty"`
	CorrelationScheme        *[]ServiceCorrelationDescription          `json:"correlationScheme,omitempty"`
	ServiceLoadMetrics       *[]ServiceLoadMetricDescription           `json:"serviceLoadMetrics,omitempty"`
	ServicePlacementPolicies *[]BasicServicePlacementPolicyDescription `json:"servicePlacementPolicies,omitempty"`
	// DefaultMoveCost - Possible values include: 'Zero', 'Low', 'Medium', 'High'
	DefaultMoveCost DefaultMoveCost `json:"defaultMoveCost,omitempty"`
}

StatelessServiceUpdateProperties the properties of a stateless service resource for patch operations.

func (StatelessServiceUpdateProperties) AsBasicServiceProperties

func (ssup StatelessServiceUpdateProperties) AsBasicServiceProperties() (BasicServiceProperties, bool)

AsBasicServiceProperties is the BasicServicePropertiesBase implementation for StatelessServiceUpdateProperties.

func (StatelessServiceUpdateProperties) AsBasicServiceUpdateProperties

func (ssup StatelessServiceUpdateProperties) AsBasicServiceUpdateProperties() (BasicServiceUpdateProperties, bool)

AsBasicServiceUpdateProperties is the BasicServicePropertiesBase implementation for StatelessServiceUpdateProperties.

func (StatelessServiceUpdateProperties) AsServiceProperties

func (ssup StatelessServiceUpdateProperties) AsServiceProperties() (*ServiceProperties, bool)

AsServiceProperties is the BasicServicePropertiesBase implementation for StatelessServiceUpdateProperties.

func (StatelessServiceUpdateProperties) AsServiceUpdateProperties

func (ssup StatelessServiceUpdateProperties) AsServiceUpdateProperties() (*ServiceUpdateProperties, bool)

AsServiceUpdateProperties is the BasicServicePropertiesBase implementation for StatelessServiceUpdateProperties.

func (StatelessServiceUpdateProperties) AsStatefulServiceProperties

func (ssup StatelessServiceUpdateProperties) AsStatefulServiceProperties() (*StatefulServiceProperties, bool)

AsStatefulServiceProperties is the BasicServicePropertiesBase implementation for StatelessServiceUpdateProperties.

func (StatelessServiceUpdateProperties) AsStatefulServiceUpdateProperties

func (ssup StatelessServiceUpdateProperties) AsStatefulServiceUpdateProperties() (*StatefulServiceUpdateProperties, bool)

AsStatefulServiceUpdateProperties is the BasicServicePropertiesBase implementation for StatelessServiceUpdateProperties.

func (StatelessServiceUpdateProperties) AsStatelessServiceProperties

func (ssup StatelessServiceUpdateProperties) AsStatelessServiceProperties() (*StatelessServiceProperties, bool)

AsStatelessServiceProperties is the BasicServicePropertiesBase implementation for StatelessServiceUpdateProperties.

func (StatelessServiceUpdateProperties) AsStatelessServiceUpdateProperties

func (ssup StatelessServiceUpdateProperties) AsStatelessServiceUpdateProperties() (*StatelessServiceUpdateProperties, bool)

AsStatelessServiceUpdateProperties is the BasicServicePropertiesBase 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"
)

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 PartitionScheme `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 (
	// Automatic ...
	Automatic UpgradeMode = "Automatic"
	// Manual ...
	Manual UpgradeMode = "Manual"
)

type UpgradeMode1

type UpgradeMode1 string

UpgradeMode1 enumerates the values for upgrade mode 1.

const (
	// UpgradeMode1Automatic ...
	UpgradeMode1Automatic UpgradeMode1 = "Automatic"
	// UpgradeMode1Manual ...
	UpgradeMode1Manual UpgradeMode1 = "Manual"
)

type VersionClient

type VersionClient struct {
	BaseClient
}

VersionClient is the azure Service Fabric Resource Provider API Client

func NewVersionClient

func NewVersionClient() VersionClient

NewVersionClient creates an instance of the VersionClient client.

func NewVersionClientWithBaseURI

func NewVersionClientWithBaseURI(baseURI string) VersionClient

NewVersionClientWithBaseURI creates an instance of the VersionClient client.

func (VersionClient) Delete

func (client VersionClient) Delete(ctx context.Context, subscriptionID string, resourceGroupName string, clusterName string, applicationTypeName string, version string) (result VersionDeleteFuture, err error)

Delete unprovisions an application type version resource.

subscriptionID is the customer subscription identifier resourceGroupName is the name of the resource group. clusterName is the name of the cluster resource applicationTypeName is the name of the application type name resource version is the application type version.

func (VersionClient) DeletePreparer

func (client VersionClient) DeletePreparer(ctx context.Context, subscriptionID string, resourceGroupName string, clusterName string, applicationTypeName string, version string) (*http.Request, error)

DeletePreparer prepares the Delete request.

func (VersionClient) DeleteResponder

func (client VersionClient) 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 (VersionClient) DeleteSender

func (client VersionClient) DeleteSender(req *http.Request) (future VersionDeleteFuture, err error)

DeleteSender sends the Delete request. The method will close the http.Response Body if it receives an error.

func (VersionClient) Get

func (client VersionClient) Get(ctx context.Context, subscriptionID string, resourceGroupName string, clusterName string, applicationTypeName string, version string) (result VersionResource, err error)

Get returns an application type version resource.

subscriptionID is the customer subscription identifier resourceGroupName is the name of the resource group. clusterName is the name of the cluster resource applicationTypeName is the name of the application type name resource version is the application type version.

func (VersionClient) GetPreparer

func (client VersionClient) GetPreparer(ctx context.Context, subscriptionID string, resourceGroupName string, clusterName string, applicationTypeName string, version string) (*http.Request, error)

GetPreparer prepares the Get request.

func (VersionClient) GetResponder

func (client VersionClient) GetResponder(resp *http.Response) (result VersionResource, err error)

GetResponder handles the response to the Get request. The method always closes the http.Response Body.

func (VersionClient) GetSender

func (client VersionClient) GetSender(req *http.Request) (*http.Response, error)

GetSender sends the Get request. The method will close the http.Response Body if it receives an error.

func (VersionClient) List

func (client VersionClient) List(ctx context.Context, subscriptionID string, resourceGroupName string, clusterName string, applicationTypeName string) (result VersionResourceList, err error)

List returns all versions for the specified application type.

subscriptionID is the customer subscription identifier resourceGroupName is the name of the resource group. clusterName is the name of the cluster resource applicationTypeName is the name of the application type name resource

func (VersionClient) ListPreparer

func (client VersionClient) ListPreparer(ctx context.Context, subscriptionID string, resourceGroupName string, clusterName string, applicationTypeName string) (*http.Request, error)

ListPreparer prepares the List request.

func (VersionClient) ListResponder

func (client VersionClient) ListResponder(resp *http.Response) (result VersionResourceList, err error)

ListResponder handles the response to the List request. The method always closes the http.Response Body.

func (VersionClient) ListSender

func (client VersionClient) ListSender(req *http.Request) (*http.Response, error)

ListSender sends the List request. The method will close the http.Response Body if it receives an error.

func (VersionClient) Put

func (client VersionClient) Put(ctx context.Context, subscriptionID string, resourceGroupName string, clusterName string, applicationTypeName string, version string, parameters VersionResource) (result VersionPutFuture, err error)

Put provisions an application type version resource.

subscriptionID is the customer subscription identifier resourceGroupName is the name of the resource group. clusterName is the name of the cluster resource applicationTypeName is the name of the application type name resource version is the application type version. parameters is the application type version resource.

func (VersionClient) PutPreparer

func (client VersionClient) PutPreparer(ctx context.Context, subscriptionID string, resourceGroupName string, clusterName string, applicationTypeName string, version string, parameters VersionResource) (*http.Request, error)

PutPreparer prepares the Put request.

func (VersionClient) PutResponder

func (client VersionClient) PutResponder(resp *http.Response) (result VersionResource, err error)

PutResponder handles the response to the Put request. The method always closes the http.Response Body.

func (VersionClient) PutSender

func (client VersionClient) PutSender(req *http.Request) (future VersionPutFuture, err error)

PutSender sends the Put request. The method will close the http.Response Body if it receives an error.

type VersionDeleteFuture

type VersionDeleteFuture struct {
	azure.Future
	// contains filtered or unexported fields
}

VersionDeleteFuture an abstraction for monitoring and retrieving the results of a long-running operation.

func (VersionDeleteFuture) Result

func (future VersionDeleteFuture) Result(client VersionClient) (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 VersionProperties

type VersionProperties struct {
	// ProvisioningState - 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 *[]ApplicationParameter `json:"defaultParameterList,omitempty"`
}

VersionProperties the properties of the version resource.

type VersionPutFuture

type VersionPutFuture struct {
	azure.Future
	// contains filtered or unexported fields
}

VersionPutFuture an abstraction for monitoring and retrieving the results of a long-running operation.

func (VersionPutFuture) Result

func (future VersionPutFuture) Result(client VersionClient) (vr VersionResource, err error)

Result returns the result of the asynchronous operation. If the operation has not completed it will return an error.

type VersionResource

type VersionResource struct {
	autorest.Response  `json:"-"`
	*VersionProperties `json:"properties,omitempty"`
	// ID - Azure resource ID.
	ID *string `json:"id,omitempty"`
	// Name - Azure resource name.
	Name *string `json:"name,omitempty"`
	// Type - Azure resource type.
	Type *string `json:"type,omitempty"`
	// Location - Resource location.
	Location *string `json:"location,omitempty"`
}

VersionResource a version resource for the specified application type name.

func (*VersionResource) UnmarshalJSON

func (vr *VersionResource) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for VersionResource struct.

type VersionResourceList

type VersionResourceList struct {
	autorest.Response `json:"-"`
	Value             *[]VersionResource `json:"value,omitempty"`
}

VersionResourceList the list of version resources for the specified application type name.

type Weight

type Weight string

Weight enumerates the values for weight.

const (
	// WeightHigh ...
	WeightHigh Weight = "High"
	// WeightLow ...
	WeightLow Weight = "Low"
	// WeightMedium ...
	WeightMedium Weight = "Medium"
	// WeightZero ...
	WeightZero Weight = "Zero"
)

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"
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL