azure-sdk-for-go: github.com/Azure/azure-sdk-for-go/services/preview/servicefabric/mgmt/2019-03-01/servicefabric Index | Files | Directories

package servicefabric

import "github.com/Azure/azure-sdk-for-go/services/preview/servicefabric/mgmt/2019-03-01/servicefabric"

Package servicefabric implements the Azure ARM Servicefabric service API version 2019-03-01-preview.

Service Fabric Management Client

Index

Package Files

applications.go applicationtypes.go applicationtypeversions.go client.go clusters.go clusterversions.go models.go operations.go services.go version.go

Constants

const (
    // DefaultBaseURI is the default URI used for the service Servicefabric
    DefaultBaseURI = "https://management.azure.com"
)

func UserAgent Uses

func UserAgent() string

UserAgent returns the UserAgent string to use when sending http.Requests.

func Version Uses

func Version() string

Version returns the semantic version (see http://semver.org) of the client.

type ApplicationDeltaHealthPolicy Uses

type ApplicationDeltaHealthPolicy struct {
    // DefaultServiceTypeDeltaHealthPolicy - The delta health policy used by default to evaluate the health of a service type when upgrading the cluster.
    DefaultServiceTypeDeltaHealthPolicy *ServiceTypeDeltaHealthPolicy `json:"defaultServiceTypeDeltaHealthPolicy,omitempty"`
    // ServiceTypeDeltaHealthPolicies - The map with service type delta health policy per service type name. The map is empty by default.
    ServiceTypeDeltaHealthPolicies map[string]*ServiceTypeDeltaHealthPolicy `json:"serviceTypeDeltaHealthPolicies"`
}

ApplicationDeltaHealthPolicy defines a delta health policy used to evaluate the health of an application or one of its child entities when upgrading the cluster.

func (ApplicationDeltaHealthPolicy) MarshalJSON Uses

func (adhp ApplicationDeltaHealthPolicy) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ApplicationDeltaHealthPolicy.

type ApplicationHealthPolicy Uses

type ApplicationHealthPolicy struct {
    // DefaultServiceTypeHealthPolicy - The health policy used by default to evaluate the health of a service type.
    DefaultServiceTypeHealthPolicy *ServiceTypeHealthPolicy `json:"defaultServiceTypeHealthPolicy,omitempty"`
    // ServiceTypeHealthPolicies - The map with service type health policy per service type name. The map is empty by default.
    ServiceTypeHealthPolicies map[string]*ServiceTypeHealthPolicy `json:"serviceTypeHealthPolicies"`
}

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

func (ApplicationHealthPolicy) MarshalJSON Uses

func (ahp ApplicationHealthPolicy) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ApplicationHealthPolicy.

type ApplicationMetricDescription Uses

type ApplicationMetricDescription struct {
    // Name - The name of the metric.
    Name *string `json:"name,omitempty"`
    // MaximumCapacity - The maximum node capacity for Service Fabric application.
    // This is the maximum Load for an instance of this application on a single node. Even if the capacity of node is greater than this value, Service Fabric will limit the total load of services within the application on each node to this value.
    // If set to zero, capacity for this metric is unlimited on each node.
    // When creating a new application with application capacity defined, the product of MaximumNodes and this value must always be smaller than or equal to TotalApplicationCapacity.
    // When updating existing application with application capacity, the product of MaximumNodes and this value must always be smaller than or equal to TotalApplicationCapacity.
    MaximumCapacity *int64 `json:"maximumCapacity,omitempty"`
    // ReservationCapacity - The node reservation capacity for Service Fabric application.
    // This is the amount of load which is reserved on nodes which have instances of this application.
    // If MinimumNodes is specified, then the product of these values will be the capacity reserved in the cluster for the application.
    // If set to zero, no capacity is reserved for this metric.
    // When setting application capacity or when updating application capacity; this value must be smaller than or equal to MaximumCapacity for each metric.
    ReservationCapacity *int64 `json:"reservationCapacity,omitempty"`
    // TotalApplicationCapacity - The total metric capacity for Service Fabric application.
    // This is the total metric capacity for this application in the cluster. Service Fabric will try to limit the sum of loads of services within the application to this value.
    // When creating a new application with application capacity defined, the product of MaximumNodes and MaximumCapacity must always be smaller than or equal to this value.
    TotalApplicationCapacity *int64 `json:"totalApplicationCapacity,omitempty"`
}

ApplicationMetricDescription describes capacity information for a custom resource balancing metric. This can be used to limit the total consumption of this metric by the services of this application.

type ApplicationResource Uses

type ApplicationResource struct {
    autorest.Response `json:"-"`
    // ApplicationResourceProperties - The application resource properties.
    *ApplicationResourceProperties `json:"properties,omitempty"`
    // ID - READ-ONLY; Azure resource identifier.
    ID  *string `json:"id,omitempty"`
    // Name - READ-ONLY; Azure resource name.
    Name *string `json:"name,omitempty"`
    // Type - READ-ONLY; Azure resource type.
    Type *string `json:"type,omitempty"`
    // Location - Azure resource location.
    Location *string `json:"location,omitempty"`
    // Tags - Azure resource tags.
    Tags map[string]*string `json:"tags"`
    // Etag - READ-ONLY; Azure resource etag.
    Etag *string `json:"etag,omitempty"`
}

ApplicationResource the application resource.

func (ApplicationResource) MarshalJSON Uses

func (ar ApplicationResource) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ApplicationResource.

func (*ApplicationResource) UnmarshalJSON Uses

func (ar *ApplicationResource) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for ApplicationResource struct.

type ApplicationResourceList Uses

type ApplicationResourceList struct {
    autorest.Response `json:"-"`
    Value             *[]ApplicationResource `json:"value,omitempty"`
    // NextLink - READ-ONLY; URL to get the next set of application list results if there are any.
    NextLink *string `json:"nextLink,omitempty"`
}

ApplicationResourceList the list of application resources.

type ApplicationResourceProperties Uses

type ApplicationResourceProperties struct {
    // ProvisioningState - READ-ONLY; The current deployment or provisioning state, which only appears in the response
    ProvisioningState *string `json:"provisioningState,omitempty"`
    // TypeName - The application type name as defined in the application manifest.
    TypeName *string `json:"typeName,omitempty"`
    // TypeVersion - The version of the application type as defined in the application manifest.
    TypeVersion *string `json:"typeVersion,omitempty"`
    // Parameters - List of application parameters with overridden values from their default values specified in the application manifest.
    Parameters map[string]*string `json:"parameters"`
    // UpgradePolicy - Describes the policy for a monitored application upgrade.
    UpgradePolicy *ApplicationUpgradePolicy `json:"upgradePolicy,omitempty"`
    // MinimumNodes - The minimum number of nodes where Service Fabric will reserve capacity for this application. Note that this does not mean that the services of this application will be placed on all of those nodes. If this property is set to zero, no capacity will be reserved. The value of this property cannot be more than the value of the MaximumNodes property.
    MinimumNodes *int64 `json:"minimumNodes,omitempty"`
    // MaximumNodes - The maximum number of nodes where Service Fabric will reserve capacity for this application. Note that this does not mean that the services of this application will be placed on all of those nodes. By default, the value of this property is zero and it means that the services can be placed on any node.
    MaximumNodes *int64 `json:"maximumNodes,omitempty"`
    // RemoveApplicationCapacity - Remove the current application capacity settings.
    RemoveApplicationCapacity *bool `json:"removeApplicationCapacity,omitempty"`
    // Metrics - List of application capacity metric description.
    Metrics *[]ApplicationMetricDescription `json:"metrics,omitempty"`
}

ApplicationResourceProperties the application resource properties.

func (ApplicationResourceProperties) MarshalJSON Uses

func (arp ApplicationResourceProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ApplicationResourceProperties.

type ApplicationResourceUpdate Uses

type ApplicationResourceUpdate struct {
    // ApplicationResourceUpdateProperties - The application resource properties for patch operations.
    *ApplicationResourceUpdateProperties `json:"properties,omitempty"`
    // ID - READ-ONLY; Azure resource identifier.
    ID  *string `json:"id,omitempty"`
    // Name - READ-ONLY; Azure resource name.
    Name *string `json:"name,omitempty"`
    // Type - READ-ONLY; Azure resource type.
    Type *string `json:"type,omitempty"`
    // Location - Azure resource location.
    Location *string `json:"location,omitempty"`
    // Tags - Azure resource tags.
    Tags map[string]*string `json:"tags"`
    // Etag - READ-ONLY; Azure resource etag.
    Etag *string `json:"etag,omitempty"`
}

ApplicationResourceUpdate the application resource for patch operations.

func (ApplicationResourceUpdate) MarshalJSON Uses

func (aru ApplicationResourceUpdate) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ApplicationResourceUpdate.

func (*ApplicationResourceUpdate) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for ApplicationResourceUpdate struct.

type ApplicationResourceUpdateProperties Uses

type ApplicationResourceUpdateProperties struct {
    // TypeVersion - The version of the application type as defined in the application manifest.
    TypeVersion *string `json:"typeVersion,omitempty"`
    // Parameters - List of application parameters with overridden values from their default values specified in the application manifest.
    Parameters map[string]*string `json:"parameters"`
    // UpgradePolicy - Describes the policy for a monitored application upgrade.
    UpgradePolicy *ApplicationUpgradePolicy `json:"upgradePolicy,omitempty"`
    // MinimumNodes - The minimum number of nodes where Service Fabric will reserve capacity for this application. Note that this does not mean that the services of this application will be placed on all of those nodes. If this property is set to zero, no capacity will be reserved. The value of this property cannot be more than the value of the MaximumNodes property.
    MinimumNodes *int64 `json:"minimumNodes,omitempty"`
    // MaximumNodes - The maximum number of nodes where Service Fabric will reserve capacity for this application. Note that this does not mean that the services of this application will be placed on all of those nodes. By default, the value of this property is zero and it means that the services can be placed on any node.
    MaximumNodes *int64 `json:"maximumNodes,omitempty"`
    // RemoveApplicationCapacity - Remove the current application capacity settings.
    RemoveApplicationCapacity *bool `json:"removeApplicationCapacity,omitempty"`
    // Metrics - List of application capacity metric description.
    Metrics *[]ApplicationMetricDescription `json:"metrics,omitempty"`
}

ApplicationResourceUpdateProperties the application resource properties for patch operations.

func (ApplicationResourceUpdateProperties) MarshalJSON Uses

func (arup ApplicationResourceUpdateProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ApplicationResourceUpdateProperties.

type ApplicationTypeResource Uses

type ApplicationTypeResource struct {
    autorest.Response `json:"-"`
    // ApplicationTypeResourceProperties - The application type name properties
    *ApplicationTypeResourceProperties `json:"properties,omitempty"`
    // ID - READ-ONLY; Azure resource identifier.
    ID  *string `json:"id,omitempty"`
    // Name - READ-ONLY; Azure resource name.
    Name *string `json:"name,omitempty"`
    // Type - READ-ONLY; Azure resource type.
    Type *string `json:"type,omitempty"`
    // Location - Azure resource location.
    Location *string `json:"location,omitempty"`
    // Tags - Azure resource tags.
    Tags map[string]*string `json:"tags"`
    // Etag - READ-ONLY; Azure resource etag.
    Etag *string `json:"etag,omitempty"`
}

ApplicationTypeResource the application type name resource

func (ApplicationTypeResource) MarshalJSON Uses

func (atr ApplicationTypeResource) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ApplicationTypeResource.

func (*ApplicationTypeResource) UnmarshalJSON Uses

func (atr *ApplicationTypeResource) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for ApplicationTypeResource struct.

type ApplicationTypeResourceList Uses

type ApplicationTypeResourceList struct {
    autorest.Response `json:"-"`
    Value             *[]ApplicationTypeResource `json:"value,omitempty"`
    // NextLink - READ-ONLY; URL to get the next set of application type list results if there are any.
    NextLink *string `json:"nextLink,omitempty"`
}

ApplicationTypeResourceList the list of application type names.

type ApplicationTypeResourceProperties Uses

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

ApplicationTypeResourceProperties the application type name properties

type ApplicationTypeVersionResource Uses

type ApplicationTypeVersionResource struct {
    autorest.Response `json:"-"`
    // ApplicationTypeVersionResourceProperties - The properties of the application type version resource.
    *ApplicationTypeVersionResourceProperties `json:"properties,omitempty"`
    // ID - READ-ONLY; Azure resource identifier.
    ID  *string `json:"id,omitempty"`
    // Name - READ-ONLY; Azure resource name.
    Name *string `json:"name,omitempty"`
    // Type - READ-ONLY; Azure resource type.
    Type *string `json:"type,omitempty"`
    // Location - Azure resource location.
    Location *string `json:"location,omitempty"`
    // Tags - Azure resource tags.
    Tags map[string]*string `json:"tags"`
    // Etag - READ-ONLY; Azure resource etag.
    Etag *string `json:"etag,omitempty"`
}

ApplicationTypeVersionResource an application type version resource for the specified application type name resource.

func (ApplicationTypeVersionResource) MarshalJSON Uses

func (atvr ApplicationTypeVersionResource) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ApplicationTypeVersionResource.

func (*ApplicationTypeVersionResource) UnmarshalJSON Uses

func (atvr *ApplicationTypeVersionResource) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for ApplicationTypeVersionResource struct.

type ApplicationTypeVersionResourceList Uses

type ApplicationTypeVersionResourceList struct {
    autorest.Response `json:"-"`
    Value             *[]ApplicationTypeVersionResource `json:"value,omitempty"`
    // NextLink - READ-ONLY; URL to get the next set of application type version list results if there are any.
    NextLink *string `json:"nextLink,omitempty"`
}

ApplicationTypeVersionResourceList the list of application type version resources for the specified application type name resource.

type ApplicationTypeVersionResourceProperties Uses

type ApplicationTypeVersionResourceProperties struct {
    // ProvisioningState - READ-ONLY; The current deployment or provisioning state, which only appears in the response
    ProvisioningState *string `json:"provisioningState,omitempty"`
    // AppPackageURL - The URL to the application package
    AppPackageURL *string `json:"appPackageUrl,omitempty"`
    // DefaultParameterList - READ-ONLY; List of application type parameters that can be overridden when creating or updating the application.
    DefaultParameterList map[string]*string `json:"defaultParameterList"`
}

ApplicationTypeVersionResourceProperties the properties of the application type version resource.

func (ApplicationTypeVersionResourceProperties) MarshalJSON Uses

func (atvrp ApplicationTypeVersionResourceProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ApplicationTypeVersionResourceProperties.

type ApplicationTypeVersionsClient Uses

type ApplicationTypeVersionsClient struct {
    BaseClient
}

ApplicationTypeVersionsClient is the service Fabric Management Client

func NewApplicationTypeVersionsClient Uses

func NewApplicationTypeVersionsClient(subscriptionID string) ApplicationTypeVersionsClient

NewApplicationTypeVersionsClient creates an instance of the ApplicationTypeVersionsClient client.

func NewApplicationTypeVersionsClientWithBaseURI Uses

func NewApplicationTypeVersionsClientWithBaseURI(baseURI string, subscriptionID string) ApplicationTypeVersionsClient

NewApplicationTypeVersionsClientWithBaseURI creates an instance of the ApplicationTypeVersionsClient client.

func (ApplicationTypeVersionsClient) Create Uses

func (client ApplicationTypeVersionsClient) Create(ctx context.Context, resourceGroupName string, clusterName string, applicationTypeName string, version string, parameters ApplicationTypeVersionResource) (result ApplicationTypeVersionsCreateFuture, err error)

Create create or update a Service Fabric application type version resource with the specified name. Parameters: resourceGroupName - the name of the resource group. clusterName - the name of the cluster resource. applicationTypeName - the name of the application type name resource. version - the application type version. parameters - the application type version resource.

func (ApplicationTypeVersionsClient) CreatePreparer Uses

func (client ApplicationTypeVersionsClient) CreatePreparer(ctx context.Context, resourceGroupName string, clusterName string, applicationTypeName string, version string, parameters ApplicationTypeVersionResource) (*http.Request, error)

CreatePreparer prepares the Create request.

func (ApplicationTypeVersionsClient) CreateResponder Uses

func (client ApplicationTypeVersionsClient) CreateResponder(resp *http.Response) (result ApplicationTypeVersionResource, err error)

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

func (ApplicationTypeVersionsClient) CreateSender Uses

func (client ApplicationTypeVersionsClient) CreateSender(req *http.Request) (future ApplicationTypeVersionsCreateFuture, err error)

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

func (ApplicationTypeVersionsClient) Delete Uses

func (client ApplicationTypeVersionsClient) Delete(ctx context.Context, resourceGroupName string, clusterName string, applicationTypeName string, version string) (result ApplicationTypeVersionsDeleteFuture, err error)

Delete delete a Service Fabric application type version resource with the specified name. Parameters: resourceGroupName - the name of the resource group. clusterName - the name of the cluster resource. applicationTypeName - the name of the application type name resource. version - the application type version.

func (ApplicationTypeVersionsClient) DeletePreparer Uses

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

DeletePreparer prepares the Delete request.

func (ApplicationTypeVersionsClient) DeleteResponder Uses

func (client ApplicationTypeVersionsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)

DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.

func (ApplicationTypeVersionsClient) DeleteSender Uses

func (client ApplicationTypeVersionsClient) DeleteSender(req *http.Request) (future ApplicationTypeVersionsDeleteFuture, err error)

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

func (ApplicationTypeVersionsClient) Get Uses

func (client ApplicationTypeVersionsClient) Get(ctx context.Context, resourceGroupName string, clusterName string, applicationTypeName string, version string) (result ApplicationTypeVersionResource, err error)

Get get a Service Fabric application type version resource created or in the process of being created in the Service Fabric application type name resource. Parameters: resourceGroupName - the name of the resource group. clusterName - the name of the cluster resource. applicationTypeName - the name of the application type name resource. version - the application type version.

func (ApplicationTypeVersionsClient) GetPreparer Uses

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

GetPreparer prepares the Get request.

func (ApplicationTypeVersionsClient) GetResponder Uses

func (client ApplicationTypeVersionsClient) GetResponder(resp *http.Response) (result ApplicationTypeVersionResource, err error)

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

func (ApplicationTypeVersionsClient) GetSender Uses

func (client ApplicationTypeVersionsClient) 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 (ApplicationTypeVersionsClient) List Uses

func (client ApplicationTypeVersionsClient) List(ctx context.Context, resourceGroupName string, clusterName string, applicationTypeName string) (result ApplicationTypeVersionResourceList, err error)

List gets all application type version resources created or in the process of being created in the Service Fabric application type name resource. Parameters: resourceGroupName - the name of the resource group. clusterName - the name of the cluster resource. applicationTypeName - the name of the application type name resource.

func (ApplicationTypeVersionsClient) ListPreparer Uses

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

ListPreparer prepares the List request.

func (ApplicationTypeVersionsClient) ListResponder Uses

func (client ApplicationTypeVersionsClient) ListResponder(resp *http.Response) (result ApplicationTypeVersionResourceList, err error)

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

func (ApplicationTypeVersionsClient) ListSender Uses

func (client ApplicationTypeVersionsClient) 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 ApplicationTypeVersionsCreateFuture Uses

type ApplicationTypeVersionsCreateFuture struct {
    azure.Future
}

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

func (*ApplicationTypeVersionsCreateFuture) Result Uses

func (future *ApplicationTypeVersionsCreateFuture) Result(client ApplicationTypeVersionsClient) (atvr ApplicationTypeVersionResource, err error)

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

type ApplicationTypeVersionsDeleteFuture Uses

type ApplicationTypeVersionsDeleteFuture struct {
    azure.Future
}

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

func (*ApplicationTypeVersionsDeleteFuture) Result Uses

func (future *ApplicationTypeVersionsDeleteFuture) Result(client ApplicationTypeVersionsClient) (ar autorest.Response, err error)

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

type ApplicationTypesClient Uses

type ApplicationTypesClient struct {
    BaseClient
}

ApplicationTypesClient is the service Fabric Management Client

func NewApplicationTypesClient Uses

func NewApplicationTypesClient(subscriptionID string) ApplicationTypesClient

NewApplicationTypesClient creates an instance of the ApplicationTypesClient client.

func NewApplicationTypesClientWithBaseURI Uses

func NewApplicationTypesClientWithBaseURI(baseURI string, subscriptionID string) ApplicationTypesClient

NewApplicationTypesClientWithBaseURI creates an instance of the ApplicationTypesClient client.

func (ApplicationTypesClient) Create Uses

func (client ApplicationTypesClient) Create(ctx context.Context, resourceGroupName string, clusterName string, applicationTypeName string, parameters ApplicationTypeResource) (result ApplicationTypeResource, err error)

Create create or update a Service Fabric application type name resource with the specified name. Parameters: resourceGroupName - the name of the resource group. clusterName - the name of the cluster resource. applicationTypeName - the name of the application type name resource. parameters - the application type name resource.

func (ApplicationTypesClient) CreatePreparer Uses

func (client ApplicationTypesClient) CreatePreparer(ctx context.Context, resourceGroupName string, clusterName string, applicationTypeName string, parameters ApplicationTypeResource) (*http.Request, error)

CreatePreparer prepares the Create request.

func (ApplicationTypesClient) CreateResponder Uses

func (client ApplicationTypesClient) CreateResponder(resp *http.Response) (result ApplicationTypeResource, err error)

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

func (ApplicationTypesClient) CreateSender Uses

func (client ApplicationTypesClient) CreateSender(req *http.Request) (*http.Response, error)

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

func (ApplicationTypesClient) Delete Uses

func (client ApplicationTypesClient) Delete(ctx context.Context, resourceGroupName string, clusterName string, applicationTypeName string) (result ApplicationTypesDeleteFuture, err error)

Delete delete a Service Fabric application type name resource with the specified name. Parameters: resourceGroupName - the name of the resource group. clusterName - the name of the cluster resource. applicationTypeName - the name of the application type name resource.

func (ApplicationTypesClient) DeletePreparer Uses

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

DeletePreparer prepares the Delete request.

func (ApplicationTypesClient) DeleteResponder Uses

func (client ApplicationTypesClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)

DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.

func (ApplicationTypesClient) DeleteSender Uses

func (client ApplicationTypesClient) DeleteSender(req *http.Request) (future ApplicationTypesDeleteFuture, err error)

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

func (ApplicationTypesClient) Get Uses

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

Get get a Service Fabric application type name resource created or in the process of being created in the Service Fabric cluster resource. Parameters: resourceGroupName - the name of the resource group. clusterName - the name of the cluster resource. applicationTypeName - the name of the application type name resource.

func (ApplicationTypesClient) GetPreparer Uses

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

GetPreparer prepares the Get request.

func (ApplicationTypesClient) GetResponder Uses

func (client ApplicationTypesClient) GetResponder(resp *http.Response) (result ApplicationTypeResource, err error)

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

func (ApplicationTypesClient) GetSender Uses

func (client ApplicationTypesClient) 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 (ApplicationTypesClient) List Uses

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

List gets all application type name resources created or in the process of being created in the Service Fabric cluster resource. Parameters: resourceGroupName - the name of the resource group. clusterName - the name of the cluster resource.

func (ApplicationTypesClient) ListPreparer Uses

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

ListPreparer prepares the List request.

func (ApplicationTypesClient) ListResponder Uses

func (client ApplicationTypesClient) ListResponder(resp *http.Response) (result ApplicationTypeResourceList, err error)

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

func (ApplicationTypesClient) ListSender Uses

func (client ApplicationTypesClient) 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 ApplicationTypesDeleteFuture Uses

type ApplicationTypesDeleteFuture struct {
    azure.Future
}

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

func (*ApplicationTypesDeleteFuture) Result Uses

func (future *ApplicationTypesDeleteFuture) Result(client ApplicationTypesClient) (ar autorest.Response, err error)

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

type ApplicationUpgradePolicy Uses

type ApplicationUpgradePolicy struct {
    // UpgradeReplicaSetCheckTimeout - The maximum amount of time to block processing of an upgrade domain and prevent loss of availability when there are unexpected issues. When this timeout expires, processing of the upgrade domain will proceed regardless of availability loss issues. The timeout is reset at the start of each upgrade domain. Valid values are between 0 and 42949672925 inclusive. (unsigned 32-bit integer).
    UpgradeReplicaSetCheckTimeout *string `json:"upgradeReplicaSetCheckTimeout,omitempty"`
    // ForceRestart - If true, then processes are forcefully restarted during upgrade even when the code version has not changed (the upgrade only changes configuration or data).
    ForceRestart *bool `json:"forceRestart,omitempty"`
    // RollingUpgradeMonitoringPolicy - The policy used for monitoring the application upgrade
    RollingUpgradeMonitoringPolicy *ArmRollingUpgradeMonitoringPolicy `json:"rollingUpgradeMonitoringPolicy,omitempty"`
    // ApplicationHealthPolicy - Defines a health policy used to evaluate the health of an application or one of its children entities.
    ApplicationHealthPolicy *ArmApplicationHealthPolicy `json:"applicationHealthPolicy,omitempty"`
}

ApplicationUpgradePolicy describes the policy for a monitored application upgrade.

type ApplicationsClient Uses

type ApplicationsClient struct {
    BaseClient
}

ApplicationsClient is the service Fabric Management Client

func NewApplicationsClient Uses

func NewApplicationsClient(subscriptionID string) ApplicationsClient

NewApplicationsClient creates an instance of the ApplicationsClient client.

func NewApplicationsClientWithBaseURI Uses

func NewApplicationsClientWithBaseURI(baseURI string, subscriptionID string) ApplicationsClient

NewApplicationsClientWithBaseURI creates an instance of the ApplicationsClient client.

func (ApplicationsClient) Create Uses

func (client ApplicationsClient) Create(ctx context.Context, resourceGroupName string, clusterName string, applicationName string, parameters ApplicationResource) (result ApplicationsCreateFuture, err error)

Create create or update a Service Fabric application resource with the specified name. Parameters: resourceGroupName - the name of the resource group. clusterName - the name of the cluster resource. applicationName - the name of the application resource. parameters - the application resource.

func (ApplicationsClient) CreatePreparer Uses

func (client ApplicationsClient) CreatePreparer(ctx context.Context, resourceGroupName string, clusterName string, applicationName string, parameters ApplicationResource) (*http.Request, error)

CreatePreparer prepares the Create request.

func (ApplicationsClient) CreateResponder Uses

func (client ApplicationsClient) CreateResponder(resp *http.Response) (result ApplicationResource, err error)

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

func (ApplicationsClient) CreateSender Uses

func (client ApplicationsClient) CreateSender(req *http.Request) (future ApplicationsCreateFuture, err error)

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

func (ApplicationsClient) Delete Uses

func (client ApplicationsClient) Delete(ctx context.Context, resourceGroupName string, clusterName string, applicationName string) (result ApplicationsDeleteFuture, err error)

Delete delete a Service Fabric application resource with the specified name. Parameters: resourceGroupName - the name of the resource group. clusterName - the name of the cluster resource. applicationName - the name of the application resource.

func (ApplicationsClient) DeletePreparer Uses

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

DeletePreparer prepares the Delete request.

func (ApplicationsClient) DeleteResponder Uses

func (client ApplicationsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)

DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.

func (ApplicationsClient) DeleteSender Uses

func (client ApplicationsClient) DeleteSender(req *http.Request) (future ApplicationsDeleteFuture, err error)

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

func (ApplicationsClient) Get Uses

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

Get get a Service Fabric application resource created or in the process of being created in the Service Fabric cluster resource. Parameters: resourceGroupName - the name of the resource group. clusterName - the name of the cluster resource. applicationName - the name of the application resource.

func (ApplicationsClient) GetPreparer Uses

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

GetPreparer prepares the Get request.

func (ApplicationsClient) GetResponder Uses

func (client ApplicationsClient) GetResponder(resp *http.Response) (result ApplicationResource, err error)

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

func (ApplicationsClient) GetSender Uses

func (client ApplicationsClient) 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 (ApplicationsClient) List Uses

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

List gets all application resources created or in the process of being created in the Service Fabric cluster resource. Parameters: resourceGroupName - the name of the resource group. clusterName - the name of the cluster resource.

func (ApplicationsClient) ListPreparer Uses

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

ListPreparer prepares the List request.

func (ApplicationsClient) ListResponder Uses

func (client ApplicationsClient) ListResponder(resp *http.Response) (result ApplicationResourceList, err error)

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

func (ApplicationsClient) ListSender Uses

func (client ApplicationsClient) 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 (ApplicationsClient) Update Uses

func (client ApplicationsClient) Update(ctx context.Context, resourceGroupName string, clusterName string, applicationName string, parameters ApplicationResourceUpdate) (result ApplicationsUpdateFuture, err error)

Update update a Service Fabric application resource with the specified name. Parameters: resourceGroupName - the name of the resource group. clusterName - the name of the cluster resource. applicationName - the name of the application resource. parameters - the application resource for patch operations.

func (ApplicationsClient) UpdatePreparer Uses

func (client ApplicationsClient) UpdatePreparer(ctx context.Context, resourceGroupName string, clusterName string, applicationName string, parameters ApplicationResourceUpdate) (*http.Request, error)

UpdatePreparer prepares the Update request.

func (ApplicationsClient) UpdateResponder Uses

func (client ApplicationsClient) UpdateResponder(resp *http.Response) (result ApplicationResource, err error)

UpdateResponder handles the response to the Update request. The method always closes the http.Response Body.

func (ApplicationsClient) UpdateSender Uses

func (client ApplicationsClient) UpdateSender(req *http.Request) (future ApplicationsUpdateFuture, err error)

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

type ApplicationsCreateFuture Uses

type ApplicationsCreateFuture struct {
    azure.Future
}

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

func (*ApplicationsCreateFuture) Result Uses

func (future *ApplicationsCreateFuture) Result(client ApplicationsClient) (ar ApplicationResource, err error)

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

type ApplicationsDeleteFuture Uses

type ApplicationsDeleteFuture struct {
    azure.Future
}

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

func (*ApplicationsDeleteFuture) Result Uses

func (future *ApplicationsDeleteFuture) Result(client ApplicationsClient) (ar autorest.Response, err error)

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

type ApplicationsUpdateFuture Uses

type ApplicationsUpdateFuture struct {
    azure.Future
}

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

func (*ApplicationsUpdateFuture) Result Uses

func (future *ApplicationsUpdateFuture) Result(client ApplicationsClient) (ar ApplicationResource, err error)

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

type ArmApplicationHealthPolicy Uses

type ArmApplicationHealthPolicy struct {
    // ConsiderWarningAsError - Indicates whether warnings are treated with the same severity as errors.
    ConsiderWarningAsError *bool `json:"considerWarningAsError,omitempty"`
    // MaxPercentUnhealthyDeployedApplications - The maximum allowed percentage of unhealthy deployed applications. Allowed values are Byte values from zero to 100.
    // The percentage represents the maximum tolerated percentage of deployed applications that can be unhealthy before the application is considered in error.
    // This is calculated by dividing the number of unhealthy deployed applications over the number of nodes where the application is currently deployed on in the cluster.
    // The computation rounds up to tolerate one failure on small numbers of nodes. Default percentage is zero.
    MaxPercentUnhealthyDeployedApplications *int32 `json:"maxPercentUnhealthyDeployedApplications,omitempty"`
    // DefaultServiceTypeHealthPolicy - The health policy used by default to evaluate the health of a service type.
    DefaultServiceTypeHealthPolicy *ArmServiceTypeHealthPolicy `json:"defaultServiceTypeHealthPolicy,omitempty"`
    // ServiceTypeHealthPolicyMap - The map with service type health policy per service type name. The map is empty by default.
    ServiceTypeHealthPolicyMap map[string]*ArmServiceTypeHealthPolicy `json:"serviceTypeHealthPolicyMap"`
}

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

func (ArmApplicationHealthPolicy) MarshalJSON Uses

func (aahp ArmApplicationHealthPolicy) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ArmApplicationHealthPolicy.

type ArmRollingUpgradeMonitoringPolicy Uses

type ArmRollingUpgradeMonitoringPolicy struct {
    // FailureAction - The activation Mode of the service package. Possible values include: 'Rollback', 'Manual'
    FailureAction ArmUpgradeFailureAction `json:"failureAction,omitempty"`
    // HealthCheckWaitDuration - The amount of time to wait after completing an upgrade domain before applying health policies. It is first interpreted as a string representing an ISO 8601 duration. If that fails, then it is interpreted as a number representing the total number of milliseconds.
    HealthCheckWaitDuration *string `json:"healthCheckWaitDuration,omitempty"`
    // HealthCheckStableDuration - The amount of time that the application or cluster must remain healthy before the upgrade proceeds to the next upgrade domain. It is first interpreted as a string representing an ISO 8601 duration. If that fails, then it is interpreted as a number representing the total number of milliseconds.
    HealthCheckStableDuration *string `json:"healthCheckStableDuration,omitempty"`
    // HealthCheckRetryTimeout - The amount of time to retry health evaluation when the application or cluster is unhealthy before FailureAction is executed. It is first interpreted as a string representing an ISO 8601 duration. If that fails, then it is interpreted as a number representing the total number of milliseconds.
    HealthCheckRetryTimeout *string `json:"healthCheckRetryTimeout,omitempty"`
    // UpgradeTimeout - The amount of time the overall upgrade has to complete before FailureAction is executed. It is first interpreted as a string representing an ISO 8601 duration. If that fails, then it is interpreted as a number representing the total number of milliseconds.
    UpgradeTimeout *string `json:"upgradeTimeout,omitempty"`
    // UpgradeDomainTimeout - The amount of time each upgrade domain has to complete before FailureAction is executed. It is first interpreted as a string representing an ISO 8601 duration. If that fails, then it is interpreted as a number representing the total number of milliseconds.
    UpgradeDomainTimeout *string `json:"upgradeDomainTimeout,omitempty"`
}

ArmRollingUpgradeMonitoringPolicy the policy used for monitoring the application upgrade

type ArmServicePackageActivationMode Uses

type ArmServicePackageActivationMode string

ArmServicePackageActivationMode enumerates the values for arm service package activation mode.

const (
    // ExclusiveProcess Indicates the application package activation mode will use exclusive process.
    ExclusiveProcess ArmServicePackageActivationMode = "ExclusiveProcess"
    // SharedProcess Indicates the application package activation mode will use shared process.
    SharedProcess ArmServicePackageActivationMode = "SharedProcess"
)

func PossibleArmServicePackageActivationModeValues Uses

func PossibleArmServicePackageActivationModeValues() []ArmServicePackageActivationMode

PossibleArmServicePackageActivationModeValues returns an array of possible values for the ArmServicePackageActivationMode const type.

type ArmServiceTypeHealthPolicy Uses

type ArmServiceTypeHealthPolicy struct {
    // MaxPercentUnhealthyServices - The maximum percentage of services allowed to be unhealthy before your application is considered in error.
    MaxPercentUnhealthyServices *int32 `json:"maxPercentUnhealthyServices,omitempty"`
    // MaxPercentUnhealthyPartitionsPerService - The maximum percentage of partitions per service allowed to be unhealthy before your application is considered in error.
    MaxPercentUnhealthyPartitionsPerService *int32 `json:"maxPercentUnhealthyPartitionsPerService,omitempty"`
    // MaxPercentUnhealthyReplicasPerPartition - The maximum percentage of replicas per partition allowed to be unhealthy before your application is considered in error.
    MaxPercentUnhealthyReplicasPerPartition *int32 `json:"maxPercentUnhealthyReplicasPerPartition,omitempty"`
}

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

type ArmUpgradeFailureAction Uses

type ArmUpgradeFailureAction string

ArmUpgradeFailureAction enumerates the values for arm upgrade failure action.

const (
    // Manual Indicates that a manual repair will need to be performed by the administrator if the upgrade
    // fails. Service Fabric will not proceed to the next upgrade domain automatically.
    Manual ArmUpgradeFailureAction = "Manual"
    // Rollback Indicates that a rollback of the upgrade will be performed by Service Fabric if the upgrade
    // fails.
    Rollback ArmUpgradeFailureAction = "Rollback"
)

func PossibleArmUpgradeFailureActionValues Uses

func PossibleArmUpgradeFailureActionValues() []ArmUpgradeFailureAction

PossibleArmUpgradeFailureActionValues returns an array of possible values for the ArmUpgradeFailureAction const type.

type AvailableOperationDisplay Uses

type AvailableOperationDisplay struct {
    // Provider - The name of the provider.
    Provider *string `json:"provider,omitempty"`
    // Resource - The resource on which the operation is performed
    Resource *string `json:"resource,omitempty"`
    // Operation - The operation that can be performed.
    Operation *string `json:"operation,omitempty"`
    // Description - Operation description
    Description *string `json:"description,omitempty"`
}

AvailableOperationDisplay operation supported by the Service Fabric resource provider

type AzureActiveDirectory Uses

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 Uses

type BaseClient struct {
    autorest.Client
    BaseURI        string
    SubscriptionID string
}

BaseClient is the base client for Servicefabric.

func New Uses

func New(subscriptionID string) BaseClient

New creates an instance of the BaseClient client.

func NewWithBaseURI Uses

func NewWithBaseURI(baseURI string, subscriptionID string) BaseClient

NewWithBaseURI creates an instance of the BaseClient client.

type BasicPartitionSchemeDescription Uses

type BasicPartitionSchemeDescription interface {
    AsNamedPartitionSchemeDescription() (*NamedPartitionSchemeDescription, bool)
    AsSingletonPartitionSchemeDescription() (*SingletonPartitionSchemeDescription, bool)
    AsUniformInt64RangePartitionSchemeDescription() (*UniformInt64RangePartitionSchemeDescription, bool)
    AsPartitionSchemeDescription() (*PartitionSchemeDescription, bool)
}

BasicPartitionSchemeDescription describes how the service is partitioned.

type BasicServicePlacementPolicyDescription Uses

type BasicServicePlacementPolicyDescription interface {
    AsServicePlacementPolicyDescription() (*ServicePlacementPolicyDescription, bool)
}

BasicServicePlacementPolicyDescription describes the policy to be used for placement of a Service Fabric service.

type BasicServiceResourceProperties Uses

type BasicServiceResourceProperties interface {
    AsStatefulServiceProperties() (*StatefulServiceProperties, bool)
    AsStatelessServiceProperties() (*StatelessServiceProperties, bool)
    AsServiceResourceProperties() (*ServiceResourceProperties, bool)
}

BasicServiceResourceProperties the service resource properties.

type BasicServiceResourceUpdateProperties Uses

type BasicServiceResourceUpdateProperties interface {
    AsStatefulServiceUpdateProperties() (*StatefulServiceUpdateProperties, bool)
    AsStatelessServiceUpdateProperties() (*StatelessServiceUpdateProperties, bool)
    AsServiceResourceUpdateProperties() (*ServiceResourceUpdateProperties, bool)
}

BasicServiceResourceUpdateProperties the service resource properties for patch operations.

type CertificateDescription Uses

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 Uses

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 Uses

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 Uses

type Cluster struct {
    autorest.Response `json:"-"`
    // ClusterProperties - The cluster resource properties
    *ClusterProperties `json:"properties,omitempty"`
    // ID - READ-ONLY; Azure resource identifier.
    ID  *string `json:"id,omitempty"`
    // Name - READ-ONLY; Azure resource name.
    Name *string `json:"name,omitempty"`
    // Type - READ-ONLY; Azure resource type.
    Type *string `json:"type,omitempty"`
    // Location - Azure resource location.
    Location *string `json:"location,omitempty"`
    // Tags - Azure resource tags.
    Tags map[string]*string `json:"tags"`
    // Etag - READ-ONLY; Azure resource etag.
    Etag *string `json:"etag,omitempty"`
}

Cluster the cluster resource

func (Cluster) MarshalJSON Uses

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

MarshalJSON is the custom marshaler for Cluster.

func (*Cluster) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for Cluster struct.

type ClusterCodeVersionsListResult Uses

type ClusterCodeVersionsListResult struct {
    autorest.Response `json:"-"`
    Value             *[]ClusterCodeVersionsResult `json:"value,omitempty"`
    // NextLink - The URL to use for getting the next set of results.
    NextLink *string `json:"nextLink,omitempty"`
}

ClusterCodeVersionsListResult the list results of the Service Fabric runtime versions.

type ClusterCodeVersionsResult Uses

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

ClusterCodeVersionsResult the result of the Service Fabric runtime versions

func (ClusterCodeVersionsResult) MarshalJSON Uses

func (ccvr ClusterCodeVersionsResult) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ClusterCodeVersionsResult.

func (*ClusterCodeVersionsResult) UnmarshalJSON Uses

func (ccvr *ClusterCodeVersionsResult) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for ClusterCodeVersionsResult struct.

type ClusterHealthPolicy Uses

type ClusterHealthPolicy struct {
    // MaxPercentUnhealthyNodes - The maximum allowed percentage of unhealthy nodes before reporting an error. For example, to allow 10% of nodes to be unhealthy, this value would be 10.
    // The percentage represents the maximum tolerated percentage of nodes that can be unhealthy before the cluster is considered in error.
    // If the percentage is respected but there is at least one unhealthy node, the health is evaluated as Warning.
    // The percentage is calculated by dividing the number of unhealthy nodes over the total number of nodes in the cluster.
    // The computation rounds up to tolerate one failure on small numbers of nodes. Default percentage is zero.
    // In large clusters, some nodes will always be down or out for repairs, so this percentage should be configured to tolerate that.
    MaxPercentUnhealthyNodes *int32 `json:"maxPercentUnhealthyNodes,omitempty"`
    // MaxPercentUnhealthyApplications - The maximum allowed percentage of unhealthy applications before reporting an error. For example, to allow 10% of applications to be unhealthy, this value would be 10.
    // The percentage represents the maximum tolerated percentage of applications that can be unhealthy before the cluster is considered in error.
    // If the percentage is respected but there is at least one unhealthy application, the health is evaluated as Warning.
    // This is calculated by dividing the number of unhealthy applications over the total number of application instances in the cluster, excluding applications of application types that are included in the ApplicationTypeHealthPolicyMap.
    // The computation rounds up to tolerate one failure on small numbers of applications. Default percentage is zero.
    MaxPercentUnhealthyApplications *int32 `json:"maxPercentUnhealthyApplications,omitempty"`
    // ApplicationHealthPolicies - Defines the application health policy map used to evaluate the health of an application or one of its children entities.
    ApplicationHealthPolicies map[string]*ApplicationHealthPolicy `json:"applicationHealthPolicies"`
}

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

func (ClusterHealthPolicy) MarshalJSON Uses

func (chp ClusterHealthPolicy) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ClusterHealthPolicy.

type ClusterListResult Uses

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 Uses

type ClusterProperties struct {
    // AddOnFeatures - The list of add-on features to enable in the cluster.
    AddOnFeatures *[]string `json:"addOnFeatures,omitempty"`
    // AvailableClusterVersions - READ-ONLY; The Service Fabric runtime versions available for this cluster.
    AvailableClusterVersions *[]ClusterVersionDetails `json:"availableClusterVersions,omitempty"`
    // AzureActiveDirectory - The AAD authentication settings of the cluster.
    AzureActiveDirectory *AzureActiveDirectory `json:"azureActiveDirectory,omitempty"`
    // Certificate - The certificate to use for securing the cluster. The certificate provided will be used for node to node security within the cluster, SSL certificate for cluster management endpoint and default admin client.
    Certificate *CertificateDescription `json:"certificate,omitempty"`
    // CertificateCommonNames - Describes a list of server certificates referenced by common name that are used to secure the cluster.
    CertificateCommonNames *ServerCertificateCommonNames `json:"certificateCommonNames,omitempty"`
    // ClientCertificateCommonNames - The list of client certificates referenced by common name that are allowed to manage the cluster.
    ClientCertificateCommonNames *[]ClientCertificateCommonName `json:"clientCertificateCommonNames,omitempty"`
    // ClientCertificateThumbprints - The list of client certificates referenced by thumbprint that are allowed to manage the cluster.
    ClientCertificateThumbprints *[]ClientCertificateThumbprint `json:"clientCertificateThumbprints,omitempty"`
    // ClusterCodeVersion - The Service Fabric runtime version of the cluster. This property can only by set the user when **upgradeMode** is set to 'Manual'. To get list of available Service Fabric versions for new clusters use [ClusterVersion API](./ClusterVersion.md). To get the list of available version for existing clusters use **availableClusterVersions**.
    ClusterCodeVersion *string `json:"clusterCodeVersion,omitempty"`
    // ClusterEndpoint - READ-ONLY; The Azure Resource Provider endpoint. A system service in the cluster connects to this  endpoint.
    ClusterEndpoint *string `json:"clusterEndpoint,omitempty"`
    // ClusterID - READ-ONLY; A service generated unique identifier for the cluster resource.
    ClusterID *string `json:"clusterId,omitempty"`
    // ClusterState - READ-ONLY; The current state of the cluster.
    //   - WaitingForNodes - Indicates that the cluster resource is created and the resource provider is waiting for Service Fabric VM extension to boot up and report to it.
    //   - Deploying - Indicates that the Service Fabric runtime is being installed on the VMs. Cluster resource will be in this state until the cluster boots up and system services are up.
    //   - BaselineUpgrade - Indicates that the cluster is upgrading to establishes the cluster version. This upgrade is automatically initiated when the cluster boots up for the first time.
    //   - UpdatingUserConfiguration - Indicates that the cluster is being upgraded with the user provided configuration.
    //   - UpdatingUserCertificate - Indicates that the cluster is being upgraded with the user provided certificate.
    //   - UpdatingInfrastructure - Indicates that the cluster is being upgraded with the latest Service Fabric runtime version. This happens only when the **upgradeMode** is set to 'Automatic'.
    //   - EnforcingClusterVersion - Indicates that cluster is on a different version than expected and the cluster is being upgraded to the expected version.
    //   - UpgradeServiceUnreachable - Indicates that the system service in the cluster is no longer polling the Resource Provider. Clusters in this state cannot be managed by the Resource Provider.
    //   - AutoScale - Indicates that the ReliabilityLevel of the cluster is being adjusted.
    //   - Ready - Indicates that the cluster is in a stable state.
    // . Possible values include: 'WaitingForNodes', 'Deploying', 'BaselineUpgrade', 'UpdatingUserConfiguration', 'UpdatingUserCertificate', 'UpdatingInfrastructure', 'EnforcingClusterVersion', 'UpgradeServiceUnreachable', 'AutoScale', 'Ready'
    ClusterState ClusterState `json:"clusterState,omitempty"`
    // DiagnosticsStorageAccountConfig - The storage account information for storing Service Fabric diagnostic logs.
    DiagnosticsStorageAccountConfig *DiagnosticsStorageAccountConfig `json:"diagnosticsStorageAccountConfig,omitempty"`
    // EventStoreServiceEnabled - Indicates if the event store service is enabled.
    EventStoreServiceEnabled *bool `json:"eventStoreServiceEnabled,omitempty"`
    // FabricSettings - The list of custom fabric settings to configure the cluster.
    FabricSettings *[]SettingsSectionDescription `json:"fabricSettings,omitempty"`
    // ManagementEndpoint - The http management endpoint of the cluster.
    ManagementEndpoint *string `json:"managementEndpoint,omitempty"`
    // NodeTypes - The list of node types in the cluster.
    NodeTypes *[]NodeTypeDescription `json:"nodeTypes,omitempty"`
    // ProvisioningState - READ-ONLY; The provisioning state of the cluster resource. Possible values include: 'Updating', 'Succeeded', 'Failed', 'Canceled'
    ProvisioningState ProvisioningState `json:"provisioningState,omitempty"`
    // ReliabilityLevel - The reliability level sets the replica set size of system services. Learn about [ReliabilityLevel](https://docs.microsoft.com/en-us/azure/service-fabric/service-fabric-cluster-capacity).
    //   - None - Run the System services with a target replica set count of 1. This should only be used for test clusters.
    //   - Bronze - Run the System services with a target replica set count of 3. This should only be used for test clusters.
    //   - Silver - Run the System services with a target replica set count of 5.
    //   - Gold - Run the System services with a target replica set count of 7.
    //   - Platinum - Run the System services with a target replica set count of 9.
    // . Possible values include: 'ReliabilityLevelNone', 'ReliabilityLevelBronze', 'ReliabilityLevelSilver', 'ReliabilityLevelGold', 'ReliabilityLevelPlatinum'
    ReliabilityLevel ReliabilityLevel `json:"reliabilityLevel,omitempty"`
    // ReverseProxyCertificate - The server certificate used by reverse proxy.
    ReverseProxyCertificate *CertificateDescription `json:"reverseProxyCertificate,omitempty"`
    // ReverseProxyCertificateCommonNames - Describes a list of server certificates referenced by common name that are used to secure the cluster.
    ReverseProxyCertificateCommonNames *ServerCertificateCommonNames `json:"reverseProxyCertificateCommonNames,omitempty"`
    // UpgradeDescription - The policy to use when upgrading the cluster.
    UpgradeDescription *ClusterUpgradePolicy `json:"upgradeDescription,omitempty"`
    // UpgradeMode - The upgrade mode of the cluster when new Service Fabric runtime version is available.
    //   - Automatic - The cluster will be automatically upgraded to the latest Service Fabric runtime version as soon as it is available.
    //   - Manual - The cluster will not be automatically upgraded to the latest Service Fabric runtime version. The cluster is upgraded by setting the **clusterCodeVersion** property in the cluster resource.
    // . Possible values include: 'UpgradeModeAutomatic', 'UpgradeModeManual'
    UpgradeMode UpgradeMode `json:"upgradeMode,omitempty"`
    // VMImage - The VM image VMSS has been configured with. Generic names such as Windows or Linux can be used.
    VMImage *string `json:"vmImage,omitempty"`
}

ClusterProperties describes the cluster resource properties.

type ClusterPropertiesUpdateParameters Uses

type ClusterPropertiesUpdateParameters struct {
    // AddOnFeatures - The list of add-on features to enable in the cluster.
    AddOnFeatures *[]string `json:"addOnFeatures,omitempty"`
    // Certificate - The certificate to use for securing the cluster. The certificate provided will be used for  node to node security within the cluster, SSL certificate for cluster management endpoint and default  admin client.
    Certificate *CertificateDescription `json:"certificate,omitempty"`
    // CertificateCommonNames - Describes a list of server certificates referenced by common name that are used to secure the cluster.
    CertificateCommonNames *ServerCertificateCommonNames `json:"certificateCommonNames,omitempty"`
    // ClientCertificateCommonNames - The list of client certificates referenced by common name that are allowed to manage the cluster. This will overwrite the existing list.
    ClientCertificateCommonNames *[]ClientCertificateCommonName `json:"clientCertificateCommonNames,omitempty"`
    // ClientCertificateThumbprints - The list of client certificates referenced by thumbprint that are allowed to manage the cluster. This will overwrite the existing list.
    ClientCertificateThumbprints *[]ClientCertificateThumbprint `json:"clientCertificateThumbprints,omitempty"`
    // ClusterCodeVersion - The Service Fabric runtime version of the cluster. This property can only by set the user when **upgradeMode** is set to 'Manual'. To get list of available Service Fabric versions for new clusters use [ClusterVersion API](./ClusterVersion.md). To get the list of available version for existing clusters use **availableClusterVersions**.
    ClusterCodeVersion *string `json:"clusterCodeVersion,omitempty"`
    // EventStoreServiceEnabled - Indicates if the event store service is enabled.
    EventStoreServiceEnabled *bool `json:"eventStoreServiceEnabled,omitempty"`
    // FabricSettings - The list of custom fabric settings to configure the cluster. This will overwrite the existing list.
    FabricSettings *[]SettingsSectionDescription `json:"fabricSettings,omitempty"`
    // NodeTypes - The list of node types in the cluster. This will overwrite the existing list.
    NodeTypes *[]NodeTypeDescription `json:"nodeTypes,omitempty"`
    // ReliabilityLevel - The reliability level sets the replica set size of system services. Learn about [ReliabilityLevel](https://docs.microsoft.com/en-us/azure/service-fabric/service-fabric-cluster-capacity).
    //   - None - Run the System services with a target replica set count of 1. This should only be used for test clusters.
    //   - Bronze - Run the System services with a target replica set count of 3. This should only be used for test clusters.
    //   - Silver - Run the System services with a target replica set count of 5.
    //   - Gold - Run the System services with a target replica set count of 7.
    //   - Platinum - Run the System services with a target replica set count of 9.
    // . Possible values include: 'ReliabilityLevel1None', 'ReliabilityLevel1Bronze', 'ReliabilityLevel1Silver', 'ReliabilityLevel1Gold', 'ReliabilityLevel1Platinum'
    ReliabilityLevel ReliabilityLevel1 `json:"reliabilityLevel,omitempty"`
    // ReverseProxyCertificate - The server certificate used by reverse proxy.
    ReverseProxyCertificate *CertificateDescription `json:"reverseProxyCertificate,omitempty"`
    // UpgradeDescription - The policy to use when upgrading the cluster.
    UpgradeDescription *ClusterUpgradePolicy `json:"upgradeDescription,omitempty"`
    // UpgradeMode - The upgrade mode of the cluster when new Service Fabric runtime version is available.
    //   - Automatic - The cluster will be automatically upgraded to the latest Service Fabric runtime version as soon as it is available.
    //   - Manual - The cluster will not be automatically upgraded to the latest Service Fabric runtime version. The cluster is upgraded by setting the **clusterCodeVersion** property in the cluster resource.
    // . Possible values include: 'UpgradeMode1Automatic', 'UpgradeMode1Manual'
    UpgradeMode UpgradeMode1 `json:"upgradeMode,omitempty"`
}

ClusterPropertiesUpdateParameters describes the cluster resource properties that can be updated during PATCH operation.

type ClusterState Uses

type ClusterState string

ClusterState enumerates the values for cluster state.

const (
    // AutoScale ...
    AutoScale ClusterState = "AutoScale"
    // BaselineUpgrade ...
    BaselineUpgrade ClusterState = "BaselineUpgrade"
    // Deploying ...
    Deploying ClusterState = "Deploying"
    // EnforcingClusterVersion ...
    EnforcingClusterVersion ClusterState = "EnforcingClusterVersion"
    // Ready ...
    Ready ClusterState = "Ready"
    // UpdatingInfrastructure ...
    UpdatingInfrastructure ClusterState = "UpdatingInfrastructure"
    // UpdatingUserCertificate ...
    UpdatingUserCertificate ClusterState = "UpdatingUserCertificate"
    // UpdatingUserConfiguration ...
    UpdatingUserConfiguration ClusterState = "UpdatingUserConfiguration"
    // UpgradeServiceUnreachable ...
    UpgradeServiceUnreachable ClusterState = "UpgradeServiceUnreachable"
    // WaitingForNodes ...
    WaitingForNodes ClusterState = "WaitingForNodes"
)

func PossibleClusterStateValues Uses

func PossibleClusterStateValues() []ClusterState

PossibleClusterStateValues returns an array of possible values for the ClusterState const type.

type ClusterUpdateParameters Uses

type ClusterUpdateParameters struct {
    // ClusterPropertiesUpdateParameters - Describes the cluster resource properties that can be updated during PATCH operation.
    *ClusterPropertiesUpdateParameters `json:"properties,omitempty"`
    // Tags - Cluster update parameters
    Tags map[string]*string `json:"tags"`
}

ClusterUpdateParameters cluster update request

func (ClusterUpdateParameters) MarshalJSON Uses

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

MarshalJSON is the custom marshaler for ClusterUpdateParameters.

func (*ClusterUpdateParameters) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for ClusterUpdateParameters struct.

type ClusterUpgradeDeltaHealthPolicy Uses

type ClusterUpgradeDeltaHealthPolicy struct {
    // MaxPercentDeltaUnhealthyNodes - The maximum allowed percentage of nodes health degradation allowed during cluster upgrades.
    // The delta is measured between the state of the nodes at the beginning of upgrade and the state of the nodes at the time of the health evaluation.
    // The check is performed after every upgrade domain upgrade completion to make sure the global state of the cluster is within tolerated limits.
    MaxPercentDeltaUnhealthyNodes *int32 `json:"maxPercentDeltaUnhealthyNodes,omitempty"`
    // MaxPercentUpgradeDomainDeltaUnhealthyNodes - The maximum allowed percentage of upgrade domain nodes health degradation allowed during cluster upgrades.
    // The delta is measured between the state of the upgrade domain nodes at the beginning of upgrade and the state of the upgrade domain nodes at the time of the health evaluation.
    // The check is performed after every upgrade domain upgrade completion for all completed upgrade domains to make sure the state of the upgrade domains is within tolerated limits.
    MaxPercentUpgradeDomainDeltaUnhealthyNodes *int32 `json:"maxPercentUpgradeDomainDeltaUnhealthyNodes,omitempty"`
    // MaxPercentDeltaUnhealthyApplications - The maximum allowed percentage of applications health degradation allowed during cluster upgrades.
    // The delta is measured between the state of the applications at the beginning of upgrade and the state of the applications at the time of the health evaluation.
    // The check is performed after every upgrade domain upgrade completion to make sure the global state of the cluster is within tolerated limits. System services are not included in this.
    MaxPercentDeltaUnhealthyApplications *int32 `json:"maxPercentDeltaUnhealthyApplications,omitempty"`
    // ApplicationDeltaHealthPolicies - Defines the application delta health policy map used to evaluate the health of an application or one of its child entities when upgrading the cluster.
    ApplicationDeltaHealthPolicies map[string]*ApplicationDeltaHealthPolicy `json:"applicationDeltaHealthPolicies"`
}

ClusterUpgradeDeltaHealthPolicy describes the delta health policies for the cluster upgrade.

func (ClusterUpgradeDeltaHealthPolicy) MarshalJSON Uses

func (cudhp ClusterUpgradeDeltaHealthPolicy) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ClusterUpgradeDeltaHealthPolicy.

type ClusterUpgradePolicy Uses

type ClusterUpgradePolicy struct {
    // ForceRestart - If true, then processes are forcefully restarted during upgrade even when the code version has not changed (the upgrade only changes configuration or data).
    ForceRestart *bool `json:"forceRestart,omitempty"`
    // UpgradeReplicaSetCheckTimeout - The maximum amount of time to block processing of an upgrade domain and prevent loss of availability when there are unexpected issues. When this timeout expires, processing of the upgrade domain will proceed regardless of availability loss issues. The timeout is reset at the start of each upgrade domain. The timeout can be in either hh:mm:ss or in d.hh:mm:ss.ms format.
    UpgradeReplicaSetCheckTimeout *string `json:"upgradeReplicaSetCheckTimeout,omitempty"`
    // HealthCheckWaitDuration - The length of time to wait after completing an upgrade domain before performing health checks. The duration can be in either hh:mm:ss or in d.hh:mm:ss.ms format.
    HealthCheckWaitDuration *string `json:"healthCheckWaitDuration,omitempty"`
    // HealthCheckStableDuration - The amount of time that the application or cluster must remain healthy before the upgrade proceeds to the next upgrade domain. The duration can be in either hh:mm:ss or in d.hh:mm:ss.ms format.
    HealthCheckStableDuration *string `json:"healthCheckStableDuration,omitempty"`
    // HealthCheckRetryTimeout - The amount of time to retry health evaluation when the application or cluster is unhealthy before the upgrade rolls back. The timeout can be in either hh:mm:ss or in d.hh:mm:ss.ms format.
    HealthCheckRetryTimeout *string `json:"healthCheckRetryTimeout,omitempty"`
    // UpgradeTimeout - The amount of time the overall upgrade has to complete before the upgrade rolls back. The timeout can be in either hh:mm:ss or in d.hh:mm:ss.ms format.
    UpgradeTimeout *string `json:"upgradeTimeout,omitempty"`
    // UpgradeDomainTimeout - The amount of time each upgrade domain has to complete before the upgrade rolls back. The timeout can be in either hh:mm:ss or in d.hh:mm:ss.ms format.
    UpgradeDomainTimeout *string `json:"upgradeDomainTimeout,omitempty"`
    // HealthPolicy - The cluster health policy used when upgrading the cluster.
    HealthPolicy *ClusterHealthPolicy `json:"healthPolicy,omitempty"`
    // DeltaHealthPolicy - The cluster delta health policy used when upgrading the cluster.
    DeltaHealthPolicy *ClusterUpgradeDeltaHealthPolicy `json:"deltaHealthPolicy,omitempty"`
}

ClusterUpgradePolicy describes the policy used when upgrading the cluster.

type ClusterVersionDetails Uses

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 Uses

type ClusterVersionsClient struct {
    BaseClient
}

ClusterVersionsClient is the service Fabric Management Client

func NewClusterVersionsClient Uses

func NewClusterVersionsClient(subscriptionID string) ClusterVersionsClient

NewClusterVersionsClient creates an instance of the ClusterVersionsClient client.

func NewClusterVersionsClientWithBaseURI Uses

func NewClusterVersionsClientWithBaseURI(baseURI string, subscriptionID string) ClusterVersionsClient

NewClusterVersionsClientWithBaseURI creates an instance of the ClusterVersionsClient client.

func (ClusterVersionsClient) Get Uses

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

Get gets information about an available Service Fabric cluster code version. Parameters: location - the location for the cluster code versions. This is different from cluster location. clusterVersion - the cluster code version.

func (ClusterVersionsClient) GetByEnvironment Uses

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

GetByEnvironment gets information about an available Service Fabric cluster code version by environment. Parameters: location - the location for the cluster code versions. This is different from cluster location. environment - the operating system of the cluster. The default means all. clusterVersion - the cluster code version.

func (ClusterVersionsClient) GetByEnvironmentPreparer Uses

func (client ClusterVersionsClient) GetByEnvironmentPreparer(ctx context.Context, location string, environment string, clusterVersion string) (*http.Request, error)

GetByEnvironmentPreparer prepares the GetByEnvironment request.

func (ClusterVersionsClient) GetByEnvironmentResponder Uses

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 Uses

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 Uses

func (client ClusterVersionsClient) GetPreparer(ctx context.Context, location string, clusterVersion string) (*http.Request, error)

GetPreparer prepares the Get request.

func (ClusterVersionsClient) GetResponder Uses

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 Uses

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 Uses

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

List gets all available code versions for Service Fabric cluster resources by location. Parameters: location - the location for the cluster code versions. This is different from cluster location.

func (ClusterVersionsClient) ListByEnvironment Uses

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

ListByEnvironment gets all available code versions for Service Fabric cluster resources by environment. Parameters: location - the location for the cluster code versions. This is different from cluster location. environment - the operating system of the cluster. The default means all.

func (ClusterVersionsClient) ListByEnvironmentPreparer Uses

func (client ClusterVersionsClient) ListByEnvironmentPreparer(ctx context.Context, location string, environment string) (*http.Request, error)

ListByEnvironmentPreparer prepares the ListByEnvironment request.

func (ClusterVersionsClient) ListByEnvironmentResponder Uses

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 Uses

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 Uses

func (client ClusterVersionsClient) ListPreparer(ctx context.Context, location string) (*http.Request, error)

ListPreparer prepares the List request.

func (ClusterVersionsClient) ListResponder Uses

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 Uses

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 Uses

type ClustersClient struct {
    BaseClient
}

ClustersClient is the service Fabric Management Client

func NewClustersClient Uses

func NewClustersClient(subscriptionID string) ClustersClient

NewClustersClient creates an instance of the ClustersClient client.

func NewClustersClientWithBaseURI Uses

func NewClustersClientWithBaseURI(baseURI string, subscriptionID string) ClustersClient

NewClustersClientWithBaseURI creates an instance of the ClustersClient client.

func (ClustersClient) Create Uses

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

Create create or update a Service Fabric cluster resource with the specified name. Parameters: resourceGroupName - the name of the resource group. clusterName - the name of the cluster resource. parameters - the cluster resource.

func (ClustersClient) CreatePreparer Uses

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

CreatePreparer prepares the Create request.

func (ClustersClient) CreateResponder Uses

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 Uses

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 Uses

func (client ClustersClient) Delete(ctx context.Context, resourceGroupName string, clusterName string) (result autorest.Response, err error)

Delete delete a Service Fabric cluster resource with the specified name. Parameters: resourceGroupName - the name of the resource group. clusterName - the name of the cluster resource.

func (ClustersClient) DeletePreparer Uses

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

DeletePreparer prepares the Delete request.

func (ClustersClient) DeleteResponder Uses

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 Uses

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 Uses

func (client ClustersClient) Get(ctx context.Context, resourceGroupName string, clusterName string) (result Cluster, err error)

Get get a Service Fabric cluster resource created or in the process of being created in the specified resource group. Parameters: resourceGroupName - the name of the resource group. clusterName - the name of the cluster resource.

func (ClustersClient) GetPreparer Uses

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

GetPreparer prepares the Get request.

func (ClustersClient) GetResponder Uses

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 Uses

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 Uses

func (client ClustersClient) List(ctx context.Context) (result ClusterListResult, err error)

List gets all Service Fabric cluster resources created or in the process of being created in the subscription.

func (ClustersClient) ListByResourceGroup Uses

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

ListByResourceGroup gets all Service Fabric cluster resources created or in the process of being created in the resource group. Parameters: resourceGroupName - the name of the resource group.

func (ClustersClient) ListByResourceGroupPreparer Uses

func (client ClustersClient) ListByResourceGroupPreparer(ctx context.Context, resourceGroupName string) (*http.Request, error)

ListByResourceGroupPreparer prepares the ListByResourceGroup request.

func (ClustersClient) ListByResourceGroupResponder Uses

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 Uses

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 Uses

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

ListPreparer prepares the List request.

func (ClustersClient) ListResponder Uses

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 Uses

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 Uses

func (client ClustersClient) Update(ctx context.Context, resourceGroupName string, clusterName string, parameters ClusterUpdateParameters) (result ClustersUpdateFuture, err error)

Update update the configuration of a Service Fabric cluster resource with the specified name. Parameters: resourceGroupName - the name of the resource group. clusterName - the name of the cluster resource. parameters - the parameters which contains the property value and property name which used to update the cluster configuration.

func (ClustersClient) UpdatePreparer Uses

func (client ClustersClient) UpdatePreparer(ctx context.Context, resourceGroupName string, clusterName string, parameters ClusterUpdateParameters) (*http.Request, error)

UpdatePreparer prepares the Update request.

func (ClustersClient) UpdateResponder Uses

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 Uses

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 Uses

type ClustersCreateFuture struct {
    azure.Future
}

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

func (*ClustersCreateFuture) Result Uses

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 Uses

type ClustersUpdateFuture struct {
    azure.Future
}

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

func (*ClustersUpdateFuture) Result Uses

func (future *ClustersUpdateFuture) Result(client ClustersClient) (c Cluster, err error)

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

type DiagnosticsStorageAccountConfig Uses

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 Uses

type DurabilityLevel string

DurabilityLevel enumerates the values for durability level.

const (
    // Bronze ...
    Bronze DurabilityLevel = "Bronze"
    // Gold ...
    Gold DurabilityLevel = "Gold"
    // Silver ...
    Silver DurabilityLevel = "Silver"
)

func PossibleDurabilityLevelValues Uses

func PossibleDurabilityLevelValues() []DurabilityLevel

PossibleDurabilityLevelValues returns an array of possible values for the DurabilityLevel const type.

type EndpointRangeDescription Uses

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 Uses

type Environment string

Environment enumerates the values for environment.

const (
    // Linux ...
    Linux Environment = "Linux"
    // Windows ...
    Windows Environment = "Windows"
)

func PossibleEnvironmentValues Uses

func PossibleEnvironmentValues() []Environment

PossibleEnvironmentValues returns an array of possible values for the Environment const type.

type ErrorModel Uses

type ErrorModel struct {
    // Error - The error details.
    Error *ErrorModelError `json:"error,omitempty"`
}

ErrorModel the structure of the error.

type ErrorModelError Uses

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

ErrorModelError the error details.

type MoveCost Uses

type MoveCost string

MoveCost enumerates the values for move cost.

const (
    // High Specifies the move cost of the service as High. The value is 3.
    High MoveCost = "High"
    // Low Specifies the move cost of the service as Low. The value is 1.
    Low MoveCost = "Low"
    // Medium Specifies the move cost of the service as Medium. The value is 2.
    Medium MoveCost = "Medium"
    // Zero Zero move cost. This value is zero.
    Zero MoveCost = "Zero"
)

func PossibleMoveCostValues Uses

func PossibleMoveCostValues() []MoveCost

PossibleMoveCostValues returns an array of possible values for the MoveCost const type.

type NamedPartitionSchemeDescription Uses

type NamedPartitionSchemeDescription struct {
    // Count - The number of partitions.
    Count *int32 `json:"Count,omitempty"`
    // Names - Array of size specified by the ‘Count’ parameter, for the names of the partitions.
    Names *[]string `json:"Names,omitempty"`
    // PartitionScheme - Possible values include: 'PartitionSchemePartitionSchemeDescription', 'PartitionSchemeNamed', 'PartitionSchemeSingleton', 'PartitionSchemeUniformInt64Range'
    PartitionScheme PartitionSchemeBasicPartitionSchemeDescription `json:"partitionScheme,omitempty"`
}

NamedPartitionSchemeDescription describes the named partition scheme of the service.

func (NamedPartitionSchemeDescription) AsBasicPartitionSchemeDescription Uses

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

AsBasicPartitionSchemeDescription is the BasicPartitionSchemeDescription implementation for NamedPartitionSchemeDescription.

func (NamedPartitionSchemeDescription) AsNamedPartitionSchemeDescription Uses

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

AsNamedPartitionSchemeDescription is the BasicPartitionSchemeDescription implementation for NamedPartitionSchemeDescription.

func (NamedPartitionSchemeDescription) AsPartitionSchemeDescription Uses

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

AsPartitionSchemeDescription is the BasicPartitionSchemeDescription implementation for NamedPartitionSchemeDescription.

func (NamedPartitionSchemeDescription) AsSingletonPartitionSchemeDescription Uses

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

AsSingletonPartitionSchemeDescription is the BasicPartitionSchemeDescription implementation for NamedPartitionSchemeDescription.

func (NamedPartitionSchemeDescription) AsUniformInt64RangePartitionSchemeDescription Uses

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

AsUniformInt64RangePartitionSchemeDescription is the BasicPartitionSchemeDescription implementation for NamedPartitionSchemeDescription.

func (NamedPartitionSchemeDescription) MarshalJSON Uses

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

MarshalJSON is the custom marshaler for NamedPartitionSchemeDescription.

type NodeTypeDescription Uses

type NodeTypeDescription struct {
    // Name - The name of the node type.
    Name *string `json:"name,omitempty"`
    // PlacementProperties - The placement tags applied to nodes in the node type, which can be used to indicate where certain services (workload) should run.
    PlacementProperties map[string]*string `json:"placementProperties"`
    // Capacities - The capacity tags applied to the nodes in the node type, the cluster resource manager uses these tags to understand how much resource a node has.
    Capacities map[string]*string `json:"capacities"`
    // ClientConnectionEndpointPort - The TCP cluster management endpoint port.
    ClientConnectionEndpointPort *int32 `json:"clientConnectionEndpointPort,omitempty"`
    // HTTPGatewayEndpointPort - The HTTP cluster management endpoint port.
    HTTPGatewayEndpointPort *int32 `json:"httpGatewayEndpointPort,omitempty"`
    // DurabilityLevel - The durability level of the node type. Learn about [DurabilityLevel](https://docs.microsoft.com/en-us/azure/service-fabric/service-fabric-cluster-capacity).
    //   - Bronze - No privileges. This is the default.
    //   - Silver - The infrastructure jobs can be paused for a duration of 10 minutes per UD.
    //   - Gold - The infrastructure jobs can be paused for a duration of 2 hours per UD. Gold durability can be enabled only on full node VM skus like D15_V2, G5 etc.
    // . Possible values include: 'Bronze', 'Silver', 'Gold'
    DurabilityLevel DurabilityLevel `json:"durabilityLevel,omitempty"`
    // ApplicationPorts - The range of ports from which cluster assigned port to Service Fabric applications.
    ApplicationPorts *EndpointRangeDescription `json:"applicationPorts,omitempty"`
    // EphemeralPorts - The range of ephemeral ports that nodes in this node type should be configured with.
    EphemeralPorts *EndpointRangeDescription `json:"ephemeralPorts,omitempty"`
    // IsPrimary - The node type on which system services will run. Only one node type should be marked as primary. Primary node type cannot be deleted or changed for existing clusters.
    IsPrimary *bool `json:"isPrimary,omitempty"`
    // VMInstanceCount - The number of nodes in the node type. This count should match the capacity property in the corresponding VirtualMachineScaleSet resource.
    VMInstanceCount *int32 `json:"vmInstanceCount,omitempty"`
    // ReverseProxyEndpointPort - The endpoint used by reverse proxy.
    ReverseProxyEndpointPort *int32 `json:"reverseProxyEndpointPort,omitempty"`
}

NodeTypeDescription describes a node type in the cluster, each node type represents sub set of nodes in the cluster.

func (NodeTypeDescription) MarshalJSON Uses

func (ntd NodeTypeDescription) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for NodeTypeDescription.

type OperationListResult Uses

type OperationListResult struct {
    autorest.Response `json:"-"`
    // Value - List of operations supported by the Service Fabric resource provider.
    Value *[]OperationResult `json:"value,omitempty"`
    // NextLink - READ-ONLY; URL to get the next set of operation list results if there are any.
    NextLink *string `json:"nextLink,omitempty"`
}

OperationListResult describes the result of the request to list Service Fabric resource provider operations.

func (OperationListResult) IsEmpty Uses

func (olr OperationListResult) IsEmpty() bool

IsEmpty returns true if the ListResult contains no values.

type OperationListResultIterator Uses

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

OperationListResultIterator provides access to a complete listing of OperationResult values.

func NewOperationListResultIterator Uses

func NewOperationListResultIterator(page OperationListResultPage) OperationListResultIterator

Creates a new instance of the OperationListResultIterator type.

func (*OperationListResultIterator) Next Uses

func (iter *OperationListResultIterator) Next() error

Next advances to the next value. If there was an error making the request the iterator does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*OperationListResultIterator) NextWithContext Uses

func (iter *OperationListResultIterator) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next value. If there was an error making the request the iterator does not advance and the error is returned.

func (OperationListResultIterator) NotDone Uses

func (iter OperationListResultIterator) NotDone() bool

NotDone returns true if the enumeration should be started or is not yet complete.

func (OperationListResultIterator) Response Uses

func (iter OperationListResultIterator) Response() OperationListResult

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

func (OperationListResultIterator) Value Uses

func (iter OperationListResultIterator) Value() OperationResult

Value returns the current value or a zero-initialized value if the iterator has advanced beyond the end of the collection.

type OperationListResultPage Uses

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

OperationListResultPage contains a page of OperationResult values.

func NewOperationListResultPage Uses

func NewOperationListResultPage(getNextPage func(context.Context, OperationListResult) (OperationListResult, error)) OperationListResultPage

Creates a new instance of the OperationListResultPage type.

func (*OperationListResultPage) Next Uses

func (page *OperationListResultPage) Next() error

Next advances to the next page of values. If there was an error making the request the page does not advance and the error is returned. Deprecated: Use NextWithContext() instead.

func (*OperationListResultPage) NextWithContext Uses

func (page *OperationListResultPage) NextWithContext(ctx context.Context) (err error)

NextWithContext advances to the next page of values. If there was an error making the request the page does not advance and the error is returned.

func (OperationListResultPage) NotDone Uses

func (page OperationListResultPage) NotDone() bool

NotDone returns true if the page enumeration should be started or is not yet complete.

func (OperationListResultPage) Response Uses

func (page OperationListResultPage) Response() OperationListResult

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

func (OperationListResultPage) Values Uses

func (page OperationListResultPage) Values() []OperationResult

Values returns the slice of values for the current page or nil if there are no values.

type OperationResult Uses

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 Uses

type OperationsClient struct {
    BaseClient
}

OperationsClient is the service Fabric Management Client

func NewOperationsClient Uses

func NewOperationsClient(subscriptionID string) OperationsClient

NewOperationsClient creates an instance of the OperationsClient client.

func NewOperationsClientWithBaseURI Uses

func NewOperationsClientWithBaseURI(baseURI string, subscriptionID string) OperationsClient

NewOperationsClientWithBaseURI creates an instance of the OperationsClient client.

func (OperationsClient) List Uses

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

List get the list of available Service Fabric resource provider API operations.

func (OperationsClient) ListComplete Uses

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

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

func (OperationsClient) ListPreparer Uses

func (client OperationsClient) ListPreparer(ctx context.Context) (*http.Request, error)

ListPreparer prepares the List request.

func (OperationsClient) ListResponder Uses

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 Uses

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 Uses

type PartitionScheme string

PartitionScheme enumerates the values for partition scheme.

const (
    // Invalid Indicates the partition kind is invalid. All Service Fabric enumerations have the invalid type.
    // The value is zero.
    Invalid PartitionScheme = "Invalid"
    // Named Indicates that the partition is based on string names, and is a NamedPartitionSchemeDescription
    // object. The value is 3
    Named PartitionScheme = "Named"
    // Singleton Indicates that the partition is based on string names, and is a
    // SingletonPartitionSchemeDescription object, The value is 1.
    Singleton PartitionScheme = "Singleton"
    // UniformInt64Range Indicates that the partition is based on Int64 key ranges, and is a
    // UniformInt64RangePartitionSchemeDescription object. The value is 2.
    UniformInt64Range PartitionScheme = "UniformInt64Range"
)

func PossiblePartitionSchemeValues Uses

func PossiblePartitionSchemeValues() []PartitionScheme

PossiblePartitionSchemeValues returns an array of possible values for the PartitionScheme const type.

type PartitionSchemeBasicPartitionSchemeDescription Uses

type PartitionSchemeBasicPartitionSchemeDescription string

PartitionSchemeBasicPartitionSchemeDescription enumerates the values for partition scheme basic partition scheme description.

const (
    // PartitionSchemeNamed ...
    PartitionSchemeNamed PartitionSchemeBasicPartitionSchemeDescription = "Named"
    // PartitionSchemePartitionSchemeDescription ...
    PartitionSchemePartitionSchemeDescription PartitionSchemeBasicPartitionSchemeDescription = "PartitionSchemeDescription"
    // PartitionSchemeSingleton ...
    PartitionSchemeSingleton PartitionSchemeBasicPartitionSchemeDescription = "Singleton"
    // PartitionSchemeUniformInt64Range ...
    PartitionSchemeUniformInt64Range PartitionSchemeBasicPartitionSchemeDescription = "UniformInt64Range"
)

func PossiblePartitionSchemeBasicPartitionSchemeDescriptionValues Uses

func PossiblePartitionSchemeBasicPartitionSchemeDescriptionValues() []PartitionSchemeBasicPartitionSchemeDescription

PossiblePartitionSchemeBasicPartitionSchemeDescriptionValues returns an array of possible values for the PartitionSchemeBasicPartitionSchemeDescription const type.

type PartitionSchemeDescription Uses

type PartitionSchemeDescription struct {
    // PartitionScheme - Possible values include: 'PartitionSchemePartitionSchemeDescription', 'PartitionSchemeNamed', 'PartitionSchemeSingleton', 'PartitionSchemeUniformInt64Range'
    PartitionScheme PartitionSchemeBasicPartitionSchemeDescription `json:"partitionScheme,omitempty"`
}

PartitionSchemeDescription describes how the service is partitioned.

func (PartitionSchemeDescription) AsBasicPartitionSchemeDescription Uses

func (psd PartitionSchemeDescription) AsBasicPartitionSchemeDescription() (BasicPartitionSchemeDescription, bool)

AsBasicPartitionSchemeDescription is the BasicPartitionSchemeDescription implementation for PartitionSchemeDescription.

func (PartitionSchemeDescription) AsNamedPartitionSchemeDescription Uses

func (psd PartitionSchemeDescription) AsNamedPartitionSchemeDescription() (*NamedPartitionSchemeDescription, bool)

AsNamedPartitionSchemeDescription is the BasicPartitionSchemeDescription implementation for PartitionSchemeDescription.

func (PartitionSchemeDescription) AsPartitionSchemeDescription Uses

func (psd PartitionSchemeDescription) AsPartitionSchemeDescription() (*PartitionSchemeDescription, bool)

AsPartitionSchemeDescription is the BasicPartitionSchemeDescription implementation for PartitionSchemeDescription.

func (PartitionSchemeDescription) AsSingletonPartitionSchemeDescription Uses

func (psd PartitionSchemeDescription) AsSingletonPartitionSchemeDescription() (*SingletonPartitionSchemeDescription, bool)

AsSingletonPartitionSchemeDescription is the BasicPartitionSchemeDescription implementation for PartitionSchemeDescription.

func (PartitionSchemeDescription) AsUniformInt64RangePartitionSchemeDescription Uses

func (psd PartitionSchemeDescription) AsUniformInt64RangePartitionSchemeDescription() (*UniformInt64RangePartitionSchemeDescription, bool)

AsUniformInt64RangePartitionSchemeDescription is the BasicPartitionSchemeDescription implementation for PartitionSchemeDescription.

func (PartitionSchemeDescription) MarshalJSON Uses

func (psd PartitionSchemeDescription) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for PartitionSchemeDescription.

type ProvisioningState Uses

type ProvisioningState string

ProvisioningState enumerates the values for provisioning state.

const (
    // Canceled ...
    Canceled ProvisioningState = "Canceled"
    // Failed ...
    Failed ProvisioningState = "Failed"
    // Succeeded ...
    Succeeded ProvisioningState = "Succeeded"
    // Updating ...
    Updating ProvisioningState = "Updating"
)

func PossibleProvisioningStateValues Uses

func PossibleProvisioningStateValues() []ProvisioningState

PossibleProvisioningStateValues returns an array of possible values for the ProvisioningState const type.

type ProxyResource Uses

type ProxyResource struct {
    // ID - READ-ONLY; Azure resource identifier.
    ID  *string `json:"id,omitempty"`
    // Name - READ-ONLY; Azure resource name.
    Name *string `json:"name,omitempty"`
    // Type - READ-ONLY; Azure resource type.
    Type *string `json:"type,omitempty"`
    // Location - Azure resource location.
    Location *string `json:"location,omitempty"`
    // Tags - Azure resource tags.
    Tags map[string]*string `json:"tags"`
    // Etag - READ-ONLY; Azure resource etag.
    Etag *string `json:"etag,omitempty"`
}

ProxyResource the resource model definition for proxy-only resource.

func (ProxyResource) MarshalJSON Uses

func (pr ProxyResource) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ProxyResource.

type ReliabilityLevel Uses

type ReliabilityLevel string

ReliabilityLevel enumerates the values for reliability level.

const (
    // ReliabilityLevelBronze ...
    ReliabilityLevelBronze ReliabilityLevel = "Bronze"
    // ReliabilityLevelGold ...
    ReliabilityLevelGold ReliabilityLevel = "Gold"
    // ReliabilityLevelNone ...
    ReliabilityLevelNone ReliabilityLevel = "None"
    // ReliabilityLevelPlatinum ...
    ReliabilityLevelPlatinum ReliabilityLevel = "Platinum"
    // ReliabilityLevelSilver ...
    ReliabilityLevelSilver ReliabilityLevel = "Silver"
)

func PossibleReliabilityLevelValues Uses

func PossibleReliabilityLevelValues() []ReliabilityLevel

PossibleReliabilityLevelValues returns an array of possible values for the ReliabilityLevel const type.

type ReliabilityLevel1 Uses

type ReliabilityLevel1 string

ReliabilityLevel1 enumerates the values for reliability level 1.

const (
    // ReliabilityLevel1Bronze ...
    ReliabilityLevel1Bronze ReliabilityLevel1 = "Bronze"
    // ReliabilityLevel1Gold ...
    ReliabilityLevel1Gold ReliabilityLevel1 = "Gold"
    // ReliabilityLevel1None ...
    ReliabilityLevel1None ReliabilityLevel1 = "None"
    // ReliabilityLevel1Platinum ...
    ReliabilityLevel1Platinum ReliabilityLevel1 = "Platinum"
    // ReliabilityLevel1Silver ...
    ReliabilityLevel1Silver ReliabilityLevel1 = "Silver"
)

func PossibleReliabilityLevel1Values Uses

func PossibleReliabilityLevel1Values() []ReliabilityLevel1

PossibleReliabilityLevel1Values returns an array of possible values for the ReliabilityLevel1 const type.

type Resource Uses

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

Resource the resource model definition.

func (Resource) MarshalJSON Uses

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

MarshalJSON is the custom marshaler for Resource.

type ServerCertificateCommonName Uses

type ServerCertificateCommonName struct {
    // CertificateCommonName - The common name of the server certificate.
    CertificateCommonName *string `json:"certificateCommonName,omitempty"`
    // CertificateIssuerThumbprint - The issuer thumbprint of the server certificate.
    CertificateIssuerThumbprint *string `json:"certificateIssuerThumbprint,omitempty"`
}

ServerCertificateCommonName describes the server certificate details using common name.

type ServerCertificateCommonNames Uses

type ServerCertificateCommonNames struct {
    // CommonNames - The list of server certificates referenced by common name that are used to secure the cluster.
    CommonNames *[]ServerCertificateCommonName `json:"commonNames,omitempty"`
    // X509StoreName - The local certificate store location. Possible values include: 'X509StoreName1AddressBook', 'X509StoreName1AuthRoot', 'X509StoreName1CertificateAuthority', 'X509StoreName1Disallowed', 'X509StoreName1My', 'X509StoreName1Root', 'X509StoreName1TrustedPeople', 'X509StoreName1TrustedPublisher'
    X509StoreName X509StoreName1 `json:"x509StoreName,omitempty"`
}

ServerCertificateCommonNames describes a list of server certificates referenced by common name that are used to secure the cluster.

type ServiceCorrelationDescription Uses

type ServiceCorrelationDescription struct {
    // Scheme - The ServiceCorrelationScheme which describes the relationship between this service and the service specified via ServiceName. Possible values include: 'ServiceCorrelationSchemeInvalid', 'ServiceCorrelationSchemeAffinity', 'ServiceCorrelationSchemeAlignedAffinity', 'ServiceCorrelationSchemeNonAlignedAffinity'
    Scheme ServiceCorrelationScheme `json:"scheme,omitempty"`
    // ServiceName - The name of the service that the correlation relationship is established with.
    ServiceName *string `json:"serviceName,omitempty"`
}

ServiceCorrelationDescription creates a particular correlation between services.

type ServiceCorrelationScheme Uses

type ServiceCorrelationScheme string

ServiceCorrelationScheme enumerates the values for service correlation scheme.

const (
    // ServiceCorrelationSchemeAffinity Indicates that this service has an affinity relationship with another
    // service. Provided for backwards compatibility, consider preferring the Aligned or NonAlignedAffinity
    // options. The value is 1.
    ServiceCorrelationSchemeAffinity ServiceCorrelationScheme = "Affinity"
    // ServiceCorrelationSchemeAlignedAffinity Aligned affinity ensures that the primaries of the partitions of
    // the affinitized services are collocated on the same nodes. This is the default and is the same as
    // selecting the Affinity scheme. The value is 2.
    ServiceCorrelationSchemeAlignedAffinity ServiceCorrelationScheme = "AlignedAffinity"
    // ServiceCorrelationSchemeInvalid An invalid correlation scheme. Cannot be used. The value is zero.
    ServiceCorrelationSchemeInvalid ServiceCorrelationScheme = "Invalid"
    // ServiceCorrelationSchemeNonAlignedAffinity Non-Aligned affinity guarantees that all replicas of each
    // service will be placed on the same nodes. Unlike Aligned Affinity, this does not guarantee that replicas
    // of particular role will be collocated. The value is 3.
    ServiceCorrelationSchemeNonAlignedAffinity ServiceCorrelationScheme = "NonAlignedAffinity"
)

func PossibleServiceCorrelationSchemeValues Uses

func PossibleServiceCorrelationSchemeValues() []ServiceCorrelationScheme

PossibleServiceCorrelationSchemeValues returns an array of possible values for the ServiceCorrelationScheme const type.

type ServiceKind Uses

type ServiceKind string

ServiceKind enumerates the values for service kind.

const (
    // ServiceKindInvalid Indicates the service kind is invalid. All Service Fabric enumerations have the
    // invalid type. The value is zero.
    ServiceKindInvalid ServiceKind = "Invalid"
    // ServiceKindStateful Uses Service Fabric to make its state or part of its state highly available and
    // reliable. The value is 2.
    ServiceKindStateful ServiceKind = "Stateful"
    // ServiceKindStateless Does not use Service Fabric to make its state highly available or reliable. The
    // value is 1.
    ServiceKindStateless ServiceKind = "Stateless"
)

func PossibleServiceKindValues Uses

func PossibleServiceKindValues() []ServiceKind

PossibleServiceKindValues returns an array of possible values for the ServiceKind const type.

type ServiceKindBasicServiceResourceProperties Uses

type ServiceKindBasicServiceResourceProperties string

ServiceKindBasicServiceResourceProperties enumerates the values for service kind basic service resource properties.

const (
    // ServiceKindServiceResourceProperties ...
    ServiceKindServiceResourceProperties ServiceKindBasicServiceResourceProperties = "ServiceResourceProperties"
    // ServiceKindStateful1 ...
    ServiceKindStateful1 ServiceKindBasicServiceResourceProperties = "Stateful"
    // ServiceKindStateless1 ...
    ServiceKindStateless1 ServiceKindBasicServiceResourceProperties = "Stateless"
)

func PossibleServiceKindBasicServiceResourcePropertiesValues Uses

func PossibleServiceKindBasicServiceResourcePropertiesValues() []ServiceKindBasicServiceResourceProperties

PossibleServiceKindBasicServiceResourcePropertiesValues returns an array of possible values for the ServiceKindBasicServiceResourceProperties const type.

type ServiceKindBasicServiceResourceUpdateProperties Uses

type ServiceKindBasicServiceResourceUpdateProperties string

ServiceKindBasicServiceResourceUpdateProperties enumerates the values for service kind basic service resource update properties.

const (
    // ServiceKindBasicServiceResourceUpdatePropertiesServiceKindServiceResourceUpdateProperties ...
    ServiceKindBasicServiceResourceUpdatePropertiesServiceKindServiceResourceUpdateProperties ServiceKindBasicServiceResourceUpdateProperties = "ServiceResourceUpdateProperties"
    // ServiceKindBasicServiceResourceUpdatePropertiesServiceKindStateful ...
    ServiceKindBasicServiceResourceUpdatePropertiesServiceKindStateful ServiceKindBasicServiceResourceUpdateProperties = "Stateful"
    // ServiceKindBasicServiceResourceUpdatePropertiesServiceKindStateless ...
    ServiceKindBasicServiceResourceUpdatePropertiesServiceKindStateless ServiceKindBasicServiceResourceUpdateProperties = "Stateless"
)

func PossibleServiceKindBasicServiceResourceUpdatePropertiesValues Uses

func PossibleServiceKindBasicServiceResourceUpdatePropertiesValues() []ServiceKindBasicServiceResourceUpdateProperties

PossibleServiceKindBasicServiceResourceUpdatePropertiesValues returns an array of possible values for the ServiceKindBasicServiceResourceUpdateProperties const type.

type ServiceLoadMetricDescription Uses

type ServiceLoadMetricDescription struct {
    // Name - The name of the metric. If the service chooses to report load during runtime, the load metric name should match the name that is specified in Name exactly. Note that metric names are case sensitive.
    Name *string `json:"name,omitempty"`
    // Weight - The service load metric relative weight, compared to other metrics configured for this service, as a number. Possible values include: 'ServiceLoadMetricWeightZero', 'ServiceLoadMetricWeightLow', 'ServiceLoadMetricWeightMedium', 'ServiceLoadMetricWeightHigh'
    Weight ServiceLoadMetricWeight `json:"weight,omitempty"`
    // PrimaryDefaultLoad - Used only for Stateful services. The default amount of load, as a number, that this service creates for this metric when it is a Primary replica.
    PrimaryDefaultLoad *int32 `json:"primaryDefaultLoad,omitempty"`
    // SecondaryDefaultLoad - Used only for Stateful services. The default amount of load, as a number, that this service creates for this metric when it is a Secondary replica.
    SecondaryDefaultLoad *int32 `json:"secondaryDefaultLoad,omitempty"`
    // DefaultLoad - Used only for Stateless services. The default amount of load, as a number, that this service creates for this metric.
    DefaultLoad *int32 `json:"defaultLoad,omitempty"`
}

ServiceLoadMetricDescription specifies a metric to load balance a service during runtime.

type ServiceLoadMetricWeight Uses

type ServiceLoadMetricWeight string

ServiceLoadMetricWeight enumerates the values for service load metric weight.

const (
    // ServiceLoadMetricWeightHigh Specifies the metric weight of the service load as High. The value is 3.
    ServiceLoadMetricWeightHigh ServiceLoadMetricWeight = "High"
    // ServiceLoadMetricWeightLow Specifies the metric weight of the service load as Low. The value is 1.
    ServiceLoadMetricWeightLow ServiceLoadMetricWeight = "Low"
    // ServiceLoadMetricWeightMedium Specifies the metric weight of the service load as Medium. The value is 2.
    ServiceLoadMetricWeightMedium ServiceLoadMetricWeight = "Medium"
    // ServiceLoadMetricWeightZero Disables resource balancing for this metric. This value is zero.
    ServiceLoadMetricWeightZero ServiceLoadMetricWeight = "Zero"
)

func PossibleServiceLoadMetricWeightValues Uses

func PossibleServiceLoadMetricWeightValues() []ServiceLoadMetricWeight

PossibleServiceLoadMetricWeightValues returns an array of possible values for the ServiceLoadMetricWeight const type.

type ServicePlacementPolicyDescription Uses

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 Uses

func (sppd ServicePlacementPolicyDescription) AsBasicServicePlacementPolicyDescription() (BasicServicePlacementPolicyDescription, bool)

AsBasicServicePlacementPolicyDescription is the BasicServicePlacementPolicyDescription implementation for ServicePlacementPolicyDescription.

func (ServicePlacementPolicyDescription) AsServicePlacementPolicyDescription Uses

func (sppd ServicePlacementPolicyDescription) AsServicePlacementPolicyDescription() (*ServicePlacementPolicyDescription, bool)

AsServicePlacementPolicyDescription is the BasicServicePlacementPolicyDescription implementation for ServicePlacementPolicyDescription.

func (ServicePlacementPolicyDescription) MarshalJSON Uses

func (sppd ServicePlacementPolicyDescription) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ServicePlacementPolicyDescription.

type ServicePlacementPolicyType Uses

type ServicePlacementPolicyType string

ServicePlacementPolicyType enumerates the values for service placement policy type.

const (
    // ServicePlacementPolicyTypeInvalid Indicates the type of the placement policy is invalid. All Service
    // Fabric enumerations have the invalid type. The value is zero.
    ServicePlacementPolicyTypeInvalid ServicePlacementPolicyType = "Invalid"
    // ServicePlacementPolicyTypeInvalidDomain Indicates that the ServicePlacementPolicyDescription is of type
    // ServicePlacementInvalidDomainPolicyDescription, which indicates that a particular fault or upgrade
    // domain cannot be used for placement of this service. The value is 1.
    ServicePlacementPolicyTypeInvalidDomain ServicePlacementPolicyType = "InvalidDomain"
    // ServicePlacementPolicyTypeNonPartiallyPlaceService Indicates that the ServicePlacementPolicyDescription
    // is of type ServicePlacementNonPartiallyPlaceServicePolicyDescription, which indicates that if possible
    // all replicas of a particular partition of the service should be placed atomically. The value is 5.
    ServicePlacementPolicyTypeNonPartiallyPlaceService ServicePlacementPolicyType = "NonPartiallyPlaceService"
    // ServicePlacementPolicyTypePreferredPrimaryDomain Indicates that the ServicePlacementPolicyDescription is
    // of type ServicePlacementPreferPrimaryDomainPolicyDescription, which indicates that if possible the
    // Primary replica for the partitions of the service should be located in a particular domain as an
    // optimization. The value is 3.
    ServicePlacementPolicyTypePreferredPrimaryDomain ServicePlacementPolicyType = "PreferredPrimaryDomain"
    // ServicePlacementPolicyTypeRequiredDomain Indicates that the ServicePlacementPolicyDescription is of type
    // ServicePlacementRequireDomainDistributionPolicyDescription indicating that the replicas of the service
    // must be placed in a specific domain. The value is 2.
    ServicePlacementPolicyTypeRequiredDomain ServicePlacementPolicyType = "RequiredDomain"
    // ServicePlacementPolicyTypeRequiredDomainDistribution Indicates that the
    // ServicePlacementPolicyDescription is of type ServicePlacementRequireDomainDistributionPolicyDescription,
    // indicating that the system will disallow placement of any two replicas from the same partition in the
    // same domain at any time. The value is 4.
    ServicePlacementPolicyTypeRequiredDomainDistribution ServicePlacementPolicyType = "RequiredDomainDistribution"
)

func PossibleServicePlacementPolicyTypeValues Uses

func PossibleServicePlacementPolicyTypeValues() []ServicePlacementPolicyType

PossibleServicePlacementPolicyTypeValues returns an array of possible values for the ServicePlacementPolicyType const type.

type ServiceResource Uses

type ServiceResource struct {
    autorest.Response `json:"-"`
    // BasicServiceResourceProperties - The service resource properties.
    BasicServiceResourceProperties `json:"properties,omitempty"`
    // ID - READ-ONLY; Azure resource identifier.
    ID  *string `json:"id,omitempty"`
    // Name - READ-ONLY; Azure resource name.
    Name *string `json:"name,omitempty"`
    // Type - READ-ONLY; Azure resource type.
    Type *string `json:"type,omitempty"`
    // Location - Azure resource location.
    Location *string `json:"location,omitempty"`
    // Tags - Azure resource tags.
    Tags map[string]*string `json:"tags"`
    // Etag - READ-ONLY; Azure resource etag.
    Etag *string `json:"etag,omitempty"`
}

ServiceResource the service resource.

func (ServiceResource) MarshalJSON Uses

func (sr ServiceResource) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ServiceResource.

func (*ServiceResource) UnmarshalJSON Uses

func (sr *ServiceResource) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for ServiceResource struct.

type ServiceResourceList Uses

type ServiceResourceList struct {
    autorest.Response `json:"-"`
    Value             *[]ServiceResource `json:"value,omitempty"`
    // NextLink - READ-ONLY; URL to get the next set of service list results if there are any.
    NextLink *string `json:"nextLink,omitempty"`
}

ServiceResourceList the list of service resources.

type ServiceResourceProperties Uses

type ServiceResourceProperties struct {
    // ProvisioningState - READ-ONLY; The current deployment or provisioning state, which only appears in the response
    ProvisioningState *string `json:"provisioningState,omitempty"`
    // ServiceTypeName - The name of the service type
    ServiceTypeName *string `json:"serviceTypeName,omitempty"`
    // PartitionDescription - Describes how the service is partitioned.
    PartitionDescription BasicPartitionSchemeDescription `json:"partitionDescription,omitempty"`
    // ServicePackageActivationMode - The activation Mode of the service package. Possible values include: 'SharedProcess', 'ExclusiveProcess'
    ServicePackageActivationMode ArmServicePackageActivationMode `json:"servicePackageActivationMode,omitempty"`
    // ServiceKind - Possible values include: 'ServiceKindServiceResourceProperties', 'ServiceKindStateful1', 'ServiceKindStateless1'
    ServiceKind ServiceKindBasicServiceResourceProperties `json:"serviceKind,omitempty"`
    // PlacementConstraints - The placement constraints as a string. Placement constraints are boolean expressions on node properties and allow for restricting a service to particular nodes based on the service requirements. For example, to place a service on nodes where NodeType is blue specify the following: "NodeColor == blue)".
    PlacementConstraints *string `json:"placementConstraints,omitempty"`
    // CorrelationScheme - A list that describes the correlation of the service with other services.
    CorrelationScheme *[]ServiceCorrelationDescription `json:"correlationScheme,omitempty"`
    // ServiceLoadMetrics - The service load metrics is given as an array of ServiceLoadMetricDescription objects.
    ServiceLoadMetrics *[]ServiceLoadMetricDescription `json:"serviceLoadMetrics,omitempty"`
    // ServicePlacementPolicies - A list that describes the correlation of the service with other services.
    ServicePlacementPolicies *[]BasicServicePlacementPolicyDescription `json:"servicePlacementPolicies,omitempty"`
    // DefaultMoveCost - Specifies the move cost for the service. Possible values include: 'Zero', 'Low', 'Medium', 'High'
    DefaultMoveCost MoveCost `json:"defaultMoveCost,omitempty"`
}

ServiceResourceProperties the service resource properties.

func (ServiceResourceProperties) AsBasicServiceResourceProperties Uses

func (srp ServiceResourceProperties) AsBasicServiceResourceProperties() (BasicServiceResourceProperties, bool)

AsBasicServiceResourceProperties is the BasicServiceResourceProperties implementation for ServiceResourceProperties.

func (ServiceResourceProperties) AsServiceResourceProperties Uses

func (srp ServiceResourceProperties) AsServiceResourceProperties() (*ServiceResourceProperties, bool)

AsServiceResourceProperties is the BasicServiceResourceProperties implementation for ServiceResourceProperties.

func (ServiceResourceProperties) AsStatefulServiceProperties Uses

func (srp ServiceResourceProperties) AsStatefulServiceProperties() (*StatefulServiceProperties, bool)

AsStatefulServiceProperties is the BasicServiceResourceProperties implementation for ServiceResourceProperties.

func (ServiceResourceProperties) AsStatelessServiceProperties Uses

func (srp ServiceResourceProperties) AsStatelessServiceProperties() (*StatelessServiceProperties, bool)

AsStatelessServiceProperties is the BasicServiceResourceProperties implementation for ServiceResourceProperties.

func (ServiceResourceProperties) MarshalJSON Uses

func (srp ServiceResourceProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ServiceResourceProperties.

func (*ServiceResourceProperties) UnmarshalJSON Uses

func (srp *ServiceResourceProperties) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for ServiceResourceProperties struct.

type ServiceResourcePropertiesBase Uses

type ServiceResourcePropertiesBase struct {
    // PlacementConstraints - The placement constraints as a string. Placement constraints are boolean expressions on node properties and allow for restricting a service to particular nodes based on the service requirements. For example, to place a service on nodes where NodeType is blue specify the following: "NodeColor == blue)".
    PlacementConstraints *string `json:"placementConstraints,omitempty"`
    // CorrelationScheme - A list that describes the correlation of the service with other services.
    CorrelationScheme *[]ServiceCorrelationDescription `json:"correlationScheme,omitempty"`
    // ServiceLoadMetrics - The service load metrics is given as an array of ServiceLoadMetricDescription objects.
    ServiceLoadMetrics *[]ServiceLoadMetricDescription `json:"serviceLoadMetrics,omitempty"`
    // ServicePlacementPolicies - A list that describes the correlation of the service with other services.
    ServicePlacementPolicies *[]BasicServicePlacementPolicyDescription `json:"servicePlacementPolicies,omitempty"`
    // DefaultMoveCost - Specifies the move cost for the service. Possible values include: 'Zero', 'Low', 'Medium', 'High'
    DefaultMoveCost MoveCost `json:"defaultMoveCost,omitempty"`
}

ServiceResourcePropertiesBase the common service resource properties.

func (*ServiceResourcePropertiesBase) UnmarshalJSON Uses

func (srpb *ServiceResourcePropertiesBase) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for ServiceResourcePropertiesBase struct.

type ServiceResourceUpdate Uses

type ServiceResourceUpdate struct {
    // BasicServiceResourceUpdateProperties - The service resource properties for patch operations.
    BasicServiceResourceUpdateProperties `json:"properties,omitempty"`
    // ID - READ-ONLY; Azure resource identifier.
    ID  *string `json:"id,omitempty"`
    // Name - READ-ONLY; Azure resource name.
    Name *string `json:"name,omitempty"`
    // Type - READ-ONLY; Azure resource type.
    Type *string `json:"type,omitempty"`
    // Location - Azure resource location.
    Location *string `json:"location,omitempty"`
    // Tags - Azure resource tags.
    Tags map[string]*string `json:"tags"`
    // Etag - READ-ONLY; Azure resource etag.
    Etag *string `json:"etag,omitempty"`
}

ServiceResourceUpdate the service resource for patch operations.

func (ServiceResourceUpdate) MarshalJSON Uses

func (sru ServiceResourceUpdate) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ServiceResourceUpdate.

func (*ServiceResourceUpdate) UnmarshalJSON Uses

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

UnmarshalJSON is the custom unmarshaler for ServiceResourceUpdate struct.

type ServiceResourceUpdateProperties Uses

type ServiceResourceUpdateProperties struct {
    // ServiceKind - Possible values include: 'ServiceKindBasicServiceResourceUpdatePropertiesServiceKindServiceResourceUpdateProperties', 'ServiceKindBasicServiceResourceUpdatePropertiesServiceKindStateful', 'ServiceKindBasicServiceResourceUpdatePropertiesServiceKindStateless'
    ServiceKind ServiceKindBasicServiceResourceUpdateProperties `json:"serviceKind,omitempty"`
    // PlacementConstraints - The placement constraints as a string. Placement constraints are boolean expressions on node properties and allow for restricting a service to particular nodes based on the service requirements. For example, to place a service on nodes where NodeType is blue specify the following: "NodeColor == blue)".
    PlacementConstraints *string `json:"placementConstraints,omitempty"`
    // CorrelationScheme - A list that describes the correlation of the service with other services.
    CorrelationScheme *[]ServiceCorrelationDescription `json:"correlationScheme,omitempty"`
    // ServiceLoadMetrics - The service load metrics is given as an array of ServiceLoadMetricDescription objects.
    ServiceLoadMetrics *[]ServiceLoadMetricDescription `json:"serviceLoadMetrics,omitempty"`
    // ServicePlacementPolicies - A list that describes the correlation of the service with other services.
    ServicePlacementPolicies *[]BasicServicePlacementPolicyDescription `json:"servicePlacementPolicies,omitempty"`
    // DefaultMoveCost - Specifies the move cost for the service. Possible values include: 'Zero', 'Low', 'Medium', 'High'
    DefaultMoveCost MoveCost `json:"defaultMoveCost,omitempty"`
}

ServiceResourceUpdateProperties the service resource properties for patch operations.

func (ServiceResourceUpdateProperties) AsBasicServiceResourceUpdateProperties Uses

func (srup ServiceResourceUpdateProperties) AsBasicServiceResourceUpdateProperties() (BasicServiceResourceUpdateProperties, bool)

AsBasicServiceResourceUpdateProperties is the BasicServiceResourceUpdateProperties implementation for ServiceResourceUpdateProperties.

func (ServiceResourceUpdateProperties) AsServiceResourceUpdateProperties Uses

func (srup ServiceResourceUpdateProperties) AsServiceResourceUpdateProperties() (*ServiceResourceUpdateProperties, bool)

AsServiceResourceUpdateProperties is the BasicServiceResourceUpdateProperties implementation for ServiceResourceUpdateProperties.

func (ServiceResourceUpdateProperties) AsStatefulServiceUpdateProperties Uses

func (srup ServiceResourceUpdateProperties) AsStatefulServiceUpdateProperties() (*StatefulServiceUpdateProperties, bool)

AsStatefulServiceUpdateProperties is the BasicServiceResourceUpdateProperties implementation for ServiceResourceUpdateProperties.

func (ServiceResourceUpdateProperties) AsStatelessServiceUpdateProperties Uses

func (srup ServiceResourceUpdateProperties) AsStatelessServiceUpdateProperties() (*StatelessServiceUpdateProperties, bool)

AsStatelessServiceUpdateProperties is the BasicServiceResourceUpdateProperties implementation for ServiceResourceUpdateProperties.

func (ServiceResourceUpdateProperties) MarshalJSON Uses

func (srup ServiceResourceUpdateProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for ServiceResourceUpdateProperties.

func (*ServiceResourceUpdateProperties) UnmarshalJSON Uses

func (srup *ServiceResourceUpdateProperties) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for ServiceResourceUpdateProperties struct.

type ServiceTypeDeltaHealthPolicy Uses

type ServiceTypeDeltaHealthPolicy struct {
    // MaxPercentDeltaUnhealthyServices - The maximum allowed percentage of services health degradation allowed during cluster upgrades.
    // The delta is measured between the state of the services at the beginning of upgrade and the state of the services at the time of the health evaluation.
    // The check is performed after every upgrade domain upgrade completion to make sure the global state of the cluster is within tolerated limits.
    MaxPercentDeltaUnhealthyServices *int32 `json:"maxPercentDeltaUnhealthyServices,omitempty"`
}

ServiceTypeDeltaHealthPolicy represents the delta health policy used to evaluate the health of services belonging to a service type when upgrading the cluster.

type ServiceTypeHealthPolicy Uses

type ServiceTypeHealthPolicy struct {
    // MaxPercentUnhealthyServices - The maximum percentage of services allowed to be unhealthy before your application is considered in error.
    MaxPercentUnhealthyServices *int32 `json:"maxPercentUnhealthyServices,omitempty"`
}

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

type ServicesClient Uses

type ServicesClient struct {
    BaseClient
}

ServicesClient is the service Fabric Management Client

func NewServicesClient Uses

func NewServicesClient(subscriptionID string) ServicesClient

NewServicesClient creates an instance of the ServicesClient client.

func NewServicesClientWithBaseURI Uses

func NewServicesClientWithBaseURI(baseURI string, subscriptionID string) ServicesClient

NewServicesClientWithBaseURI creates an instance of the ServicesClient client.

func (ServicesClient) Create Uses

func (client ServicesClient) Create(ctx context.Context, resourceGroupName string, clusterName string, applicationName string, serviceName string, parameters ServiceResource) (result ServicesCreateFuture, err error)

Create create or update a Service Fabric service resource with the specified name. Parameters: resourceGroupName - the name of the resource group. clusterName - the name of the cluster resource. applicationName - the name of the application resource. serviceName - the name of the service resource in the format of {applicationName}~{serviceName}. parameters - the service resource.

func (ServicesClient) CreatePreparer Uses

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

CreatePreparer prepares the Create request.

func (ServicesClient) CreateResponder Uses

func (client ServicesClient) CreateResponder(resp *http.Response) (result ServiceResource, err error)

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

func (ServicesClient) CreateSender Uses

func (client ServicesClient) CreateSender(req *http.Request) (future ServicesCreateFuture, err error)

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

func (ServicesClient) Delete Uses

func (client ServicesClient) Delete(ctx context.Context, resourceGroupName string, clusterName string, applicationName string, serviceName string) (result ServicesDeleteFuture, err error)

Delete delete a Service Fabric service resource with the specified name. Parameters: resourceGroupName - the name of the resource group. clusterName - the name of the cluster resource. applicationName - the name of the application resource. serviceName - the name of the service resource in the format of {applicationName}~{serviceName}.

func (ServicesClient) DeletePreparer Uses

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

DeletePreparer prepares the Delete request.

func (ServicesClient) DeleteResponder Uses

func (client ServicesClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error)

DeleteResponder handles the response to the Delete request. The method always closes the http.Response Body.

func (ServicesClient) DeleteSender Uses

func (client ServicesClient) DeleteSender(req *http.Request) (future ServicesDeleteFuture, err error)

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

func (ServicesClient) Get Uses

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

Get get a Service Fabric service resource created or in the process of being created in the Service Fabric application resource. Parameters: resourceGroupName - the name of the resource group. clusterName - the name of the cluster resource. applicationName - the name of the application resource. serviceName - the name of the service resource in the format of {applicationName}~{serviceName}.

func (ServicesClient) GetPreparer Uses

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

GetPreparer prepares the Get request.

func (ServicesClient) GetResponder Uses

func (client ServicesClient) GetResponder(resp *http.Response) (result ServiceResource, err error)

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

func (ServicesClient) GetSender Uses

func (client ServicesClient) 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 (ServicesClient) List Uses

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

List gets all service resources created or in the process of being created in the Service Fabric application resource. Parameters: resourceGroupName - the name of the resource group. clusterName - the name of the cluster resource. applicationName - the name of the application resource.

func (ServicesClient) ListPreparer Uses

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

ListPreparer prepares the List request.

func (ServicesClient) ListResponder Uses

func (client ServicesClient) ListResponder(resp *http.Response) (result ServiceResourceList, err error)

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

func (ServicesClient) ListSender Uses

func (client ServicesClient) 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 (ServicesClient) Update Uses

func (client ServicesClient) Update(ctx context.Context, resourceGroupName string, clusterName string, applicationName string, serviceName string, parameters ServiceResourceUpdate) (result ServicesUpdateFuture, err error)

Update update a Service Fabric service resource with the specified name. Parameters: resourceGroupName - the name of the resource group. clusterName - the name of the cluster resource. applicationName - the name of the application resource. serviceName - the name of the service resource in the format of {applicationName}~{serviceName}. parameters - the service resource for patch operations.

func (ServicesClient) UpdatePreparer Uses

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

UpdatePreparer prepares the Update request.

func (ServicesClient) UpdateResponder Uses

func (client ServicesClient) UpdateResponder(resp *http.Response) (result ServiceResource, err error)

UpdateResponder handles the response to the Update request. The method always closes the http.Response Body.

func (ServicesClient) UpdateSender Uses

func (client ServicesClient) UpdateSender(req *http.Request) (future ServicesUpdateFuture, err error)

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

type ServicesCreateFuture Uses

type ServicesCreateFuture struct {
    azure.Future
}

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

func (*ServicesCreateFuture) Result Uses

func (future *ServicesCreateFuture) Result(client ServicesClient) (sr ServiceResource, err error)

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

type ServicesDeleteFuture Uses

type ServicesDeleteFuture struct {
    azure.Future
}

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

func (*ServicesDeleteFuture) Result Uses

func (future *ServicesDeleteFuture) Result(client ServicesClient) (ar autorest.Response, err error)

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

type ServicesUpdateFuture Uses

type ServicesUpdateFuture struct {
    azure.Future
}

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

func (*ServicesUpdateFuture) Result Uses

func (future *ServicesUpdateFuture) Result(client ServicesClient) (sr ServiceResource, err error)

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

type SettingsParameterDescription Uses

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 Uses

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 Uses

type SingletonPartitionSchemeDescription struct {
    // PartitionScheme - Possible values include: 'PartitionSchemePartitionSchemeDescription', 'PartitionSchemeNamed', 'PartitionSchemeSingleton', 'PartitionSchemeUniformInt64Range'
    PartitionScheme PartitionSchemeBasicPartitionSchemeDescription `json:"partitionScheme,omitempty"`
}

SingletonPartitionSchemeDescription describes the partition scheme of a singleton-partitioned, or non-partitioned service.

func (SingletonPartitionSchemeDescription) AsBasicPartitionSchemeDescription Uses

func (spsd SingletonPartitionSchemeDescription) AsBasicPartitionSchemeDescription() (BasicPartitionSchemeDescription, bool)

AsBasicPartitionSchemeDescription is the BasicPartitionSchemeDescription implementation for SingletonPartitionSchemeDescription.

func (SingletonPartitionSchemeDescription) AsNamedPartitionSchemeDescription Uses

func (spsd SingletonPartitionSchemeDescription) AsNamedPartitionSchemeDescription() (*NamedPartitionSchemeDescription, bool)

AsNamedPartitionSchemeDescription is the BasicPartitionSchemeDescription implementation for SingletonPartitionSchemeDescription.

func (SingletonPartitionSchemeDescription) AsPartitionSchemeDescription Uses

func (spsd SingletonPartitionSchemeDescription) AsPartitionSchemeDescription() (*PartitionSchemeDescription, bool)

AsPartitionSchemeDescription is the BasicPartitionSchemeDescription implementation for SingletonPartitionSchemeDescription.

func (SingletonPartitionSchemeDescription) AsSingletonPartitionSchemeDescription Uses

func (spsd SingletonPartitionSchemeDescription) AsSingletonPartitionSchemeDescription() (*SingletonPartitionSchemeDescription, bool)

AsSingletonPartitionSchemeDescription is the BasicPartitionSchemeDescription implementation for SingletonPartitionSchemeDescription.

func (SingletonPartitionSchemeDescription) AsUniformInt64RangePartitionSchemeDescription Uses

func (spsd SingletonPartitionSchemeDescription) AsUniformInt64RangePartitionSchemeDescription() (*UniformInt64RangePartitionSchemeDescription, bool)

AsUniformInt64RangePartitionSchemeDescription is the BasicPartitionSchemeDescription implementation for SingletonPartitionSchemeDescription.

func (SingletonPartitionSchemeDescription) MarshalJSON Uses

func (spsd SingletonPartitionSchemeDescription) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for SingletonPartitionSchemeDescription.

type StatefulServiceProperties Uses

type StatefulServiceProperties struct {
    // HasPersistedState - A flag indicating whether this is a persistent service which stores states on the local disk. If it is then the value of this property is true, if not it is false.
    HasPersistedState *bool `json:"hasPersistedState,omitempty"`
    // TargetReplicaSetSize - The target replica set size as a number.
    TargetReplicaSetSize *int32 `json:"targetReplicaSetSize,omitempty"`
    // MinReplicaSetSize - The minimum replica set size as a number.
    MinReplicaSetSize *int32 `json:"minReplicaSetSize,omitempty"`
    // ReplicaRestartWaitDuration - The duration between when a replica goes down and when a new replica is created, represented in ISO 8601 format (hh:mm:ss.s).
    ReplicaRestartWaitDuration *date.Time `json:"replicaRestartWaitDuration,omitempty"`
    // QuorumLossWaitDuration - The maximum duration for which a partition is allowed to be in a state of quorum loss, represented in ISO 8601 format (hh:mm:ss.s).
    QuorumLossWaitDuration *date.Time `json:"quorumLossWaitDuration,omitempty"`
    // StandByReplicaKeepDuration - The definition on how long StandBy replicas should be maintained before being removed, represented in ISO 8601 format (hh:mm:ss.s).
    StandByReplicaKeepDuration *date.Time `json:"standByReplicaKeepDuration,omitempty"`
    // ProvisioningState - READ-ONLY; The current deployment or provisioning state, which only appears in the response
    ProvisioningState *string `json:"provisioningState,omitempty"`
    // ServiceTypeName - The name of the service type
    ServiceTypeName *string `json:"serviceTypeName,omitempty"`
    // PartitionDescription - Describes how the service is partitioned.
    PartitionDescription BasicPartitionSchemeDescription `json:"partitionDescription,omitempty"`
    // ServicePackageActivationMode - The activation Mode of the service package. Possible values include: 'SharedProcess', 'ExclusiveProcess'
    ServicePackageActivationMode ArmServicePackageActivationMode `json:"servicePackageActivationMode,omitempty"`
    // ServiceKind - Possible values include: 'ServiceKindServiceResourceProperties', 'ServiceKindStateful1', 'ServiceKindStateless1'
    ServiceKind ServiceKindBasicServiceResourceProperties `json:"serviceKind,omitempty"`
    // PlacementConstraints - The placement constraints as a string. Placement constraints are boolean expressions on node properties and allow for restricting a service to particular nodes based on the service requirements. For example, to place a service on nodes where NodeType is blue specify the following: "NodeColor == blue)".
    PlacementConstraints *string `json:"placementConstraints,omitempty"`
    // CorrelationScheme - A list that describes the correlation of the service with other services.
    CorrelationScheme *[]ServiceCorrelationDescription `json:"correlationScheme,omitempty"`
    // ServiceLoadMetrics - The service load metrics is given as an array of ServiceLoadMetricDescription objects.
    ServiceLoadMetrics *[]ServiceLoadMetricDescription `json:"serviceLoadMetrics,omitempty"`
    // ServicePlacementPolicies - A list that describes the correlation of the service with other services.
    ServicePlacementPolicies *[]BasicServicePlacementPolicyDescription `json:"servicePlacementPolicies,omitempty"`
    // DefaultMoveCost - Specifies the move cost for the service. Possible values include: 'Zero', 'Low', 'Medium', 'High'
    DefaultMoveCost MoveCost `json:"defaultMoveCost,omitempty"`
}

StatefulServiceProperties the properties of a stateful service resource.

func (StatefulServiceProperties) AsBasicServiceResourceProperties Uses

func (ssp StatefulServiceProperties) AsBasicServiceResourceProperties() (BasicServiceResourceProperties, bool)

AsBasicServiceResourceProperties is the BasicServiceResourceProperties implementation for StatefulServiceProperties.

func (StatefulServiceProperties) AsServiceResourceProperties Uses

func (ssp StatefulServiceProperties) AsServiceResourceProperties() (*ServiceResourceProperties, bool)

AsServiceResourceProperties is the BasicServiceResourceProperties implementation for StatefulServiceProperties.

func (StatefulServiceProperties) AsStatefulServiceProperties Uses

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

AsStatefulServiceProperties is the BasicServiceResourceProperties implementation for StatefulServiceProperties.

func (StatefulServiceProperties) AsStatelessServiceProperties Uses

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

AsStatelessServiceProperties is the BasicServiceResourceProperties implementation for StatefulServiceProperties.

func (StatefulServiceProperties) MarshalJSON Uses

func (ssp StatefulServiceProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for StatefulServiceProperties.

func (*StatefulServiceProperties) UnmarshalJSON Uses

func (ssp *StatefulServiceProperties) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for StatefulServiceProperties struct.

type StatefulServiceUpdateProperties Uses

type StatefulServiceUpdateProperties struct {
    // TargetReplicaSetSize - The target replica set size as a number.
    TargetReplicaSetSize *int32 `json:"targetReplicaSetSize,omitempty"`
    // MinReplicaSetSize - The minimum replica set size as a number.
    MinReplicaSetSize *int32 `json:"minReplicaSetSize,omitempty"`
    // ReplicaRestartWaitDuration - The duration between when a replica goes down and when a new replica is created, represented in ISO 8601 format (hh:mm:ss.s).
    ReplicaRestartWaitDuration *date.Time `json:"replicaRestartWaitDuration,omitempty"`
    // QuorumLossWaitDuration - The maximum duration for which a partition is allowed to be in a state of quorum loss, represented in ISO 8601 format (hh:mm:ss.s).
    QuorumLossWaitDuration *date.Time `json:"quorumLossWaitDuration,omitempty"`
    // StandByReplicaKeepDuration - The definition on how long StandBy replicas should be maintained before being removed, represented in ISO 8601 format (hh:mm:ss.s).
    StandByReplicaKeepDuration *date.Time `json:"standByReplicaKeepDuration,omitempty"`
    // ServiceKind - Possible values include: 'ServiceKindBasicServiceResourceUpdatePropertiesServiceKindServiceResourceUpdateProperties', 'ServiceKindBasicServiceResourceUpdatePropertiesServiceKindStateful', 'ServiceKindBasicServiceResourceUpdatePropertiesServiceKindStateless'
    ServiceKind ServiceKindBasicServiceResourceUpdateProperties `json:"serviceKind,omitempty"`
    // PlacementConstraints - The placement constraints as a string. Placement constraints are boolean expressions on node properties and allow for restricting a service to particular nodes based on the service requirements. For example, to place a service on nodes where NodeType is blue specify the following: "NodeColor == blue)".
    PlacementConstraints *string `json:"placementConstraints,omitempty"`
    // CorrelationScheme - A list that describes the correlation of the service with other services.
    CorrelationScheme *[]ServiceCorrelationDescription `json:"correlationScheme,omitempty"`
    // ServiceLoadMetrics - The service load metrics is given as an array of ServiceLoadMetricDescription objects.
    ServiceLoadMetrics *[]ServiceLoadMetricDescription `json:"serviceLoadMetrics,omitempty"`
    // ServicePlacementPolicies - A list that describes the correlation of the service with other services.
    ServicePlacementPolicies *[]BasicServicePlacementPolicyDescription `json:"servicePlacementPolicies,omitempty"`
    // DefaultMoveCost - Specifies the move cost for the service. Possible values include: 'Zero', 'Low', 'Medium', 'High'
    DefaultMoveCost MoveCost `json:"defaultMoveCost,omitempty"`
}

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

func (StatefulServiceUpdateProperties) AsBasicServiceResourceUpdateProperties Uses

func (ssup StatefulServiceUpdateProperties) AsBasicServiceResourceUpdateProperties() (BasicServiceResourceUpdateProperties, bool)

AsBasicServiceResourceUpdateProperties is the BasicServiceResourceUpdateProperties implementation for StatefulServiceUpdateProperties.

func (StatefulServiceUpdateProperties) AsServiceResourceUpdateProperties Uses

func (ssup StatefulServiceUpdateProperties) AsServiceResourceUpdateProperties() (*ServiceResourceUpdateProperties, bool)

AsServiceResourceUpdateProperties is the BasicServiceResourceUpdateProperties implementation for StatefulServiceUpdateProperties.

func (StatefulServiceUpdateProperties) AsStatefulServiceUpdateProperties Uses

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

AsStatefulServiceUpdateProperties is the BasicServiceResourceUpdateProperties implementation for StatefulServiceUpdateProperties.

func (StatefulServiceUpdateProperties) AsStatelessServiceUpdateProperties Uses

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

AsStatelessServiceUpdateProperties is the BasicServiceResourceUpdateProperties implementation for StatefulServiceUpdateProperties.

func (StatefulServiceUpdateProperties) MarshalJSON Uses

func (ssup StatefulServiceUpdateProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for StatefulServiceUpdateProperties.

func (*StatefulServiceUpdateProperties) UnmarshalJSON Uses

func (ssup *StatefulServiceUpdateProperties) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for StatefulServiceUpdateProperties struct.

type StatelessServiceProperties Uses

type StatelessServiceProperties struct {
    // InstanceCount - The instance count.
    InstanceCount *int32 `json:"instanceCount,omitempty"`
    // ProvisioningState - READ-ONLY; The current deployment or provisioning state, which only appears in the response
    ProvisioningState *string `json:"provisioningState,omitempty"`
    // ServiceTypeName - The name of the service type
    ServiceTypeName *string `json:"serviceTypeName,omitempty"`
    // PartitionDescription - Describes how the service is partitioned.
    PartitionDescription BasicPartitionSchemeDescription `json:"partitionDescription,omitempty"`
    // ServicePackageActivationMode - The activation Mode of the service package. Possible values include: 'SharedProcess', 'ExclusiveProcess'
    ServicePackageActivationMode ArmServicePackageActivationMode `json:"servicePackageActivationMode,omitempty"`
    // ServiceKind - Possible values include: 'ServiceKindServiceResourceProperties', 'ServiceKindStateful1', 'ServiceKindStateless1'
    ServiceKind ServiceKindBasicServiceResourceProperties `json:"serviceKind,omitempty"`
    // PlacementConstraints - The placement constraints as a string. Placement constraints are boolean expressions on node properties and allow for restricting a service to particular nodes based on the service requirements. For example, to place a service on nodes where NodeType is blue specify the following: "NodeColor == blue)".
    PlacementConstraints *string `json:"placementConstraints,omitempty"`
    // CorrelationScheme - A list that describes the correlation of the service with other services.
    CorrelationScheme *[]ServiceCorrelationDescription `json:"correlationScheme,omitempty"`
    // ServiceLoadMetrics - The service load metrics is given as an array of ServiceLoadMetricDescription objects.
    ServiceLoadMetrics *[]ServiceLoadMetricDescription `json:"serviceLoadMetrics,omitempty"`
    // ServicePlacementPolicies - A list that describes the correlation of the service with other services.
    ServicePlacementPolicies *[]BasicServicePlacementPolicyDescription `json:"servicePlacementPolicies,omitempty"`
    // DefaultMoveCost - Specifies the move cost for the service. Possible values include: 'Zero', 'Low', 'Medium', 'High'
    DefaultMoveCost MoveCost `json:"defaultMoveCost,omitempty"`
}

StatelessServiceProperties the properties of a stateless service resource.

func (StatelessServiceProperties) AsBasicServiceResourceProperties Uses

func (ssp StatelessServiceProperties) AsBasicServiceResourceProperties() (BasicServiceResourceProperties, bool)

AsBasicServiceResourceProperties is the BasicServiceResourceProperties implementation for StatelessServiceProperties.

func (StatelessServiceProperties) AsServiceResourceProperties Uses

func (ssp StatelessServiceProperties) AsServiceResourceProperties() (*ServiceResourceProperties, bool)

AsServiceResourceProperties is the BasicServiceResourceProperties implementation for StatelessServiceProperties.

func (StatelessServiceProperties) AsStatefulServiceProperties Uses

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

AsStatefulServiceProperties is the BasicServiceResourceProperties implementation for StatelessServiceProperties.

func (StatelessServiceProperties) AsStatelessServiceProperties Uses

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

AsStatelessServiceProperties is the BasicServiceResourceProperties implementation for StatelessServiceProperties.

func (StatelessServiceProperties) MarshalJSON Uses

func (ssp StatelessServiceProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for StatelessServiceProperties.

func (*StatelessServiceProperties) UnmarshalJSON Uses

func (ssp *StatelessServiceProperties) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for StatelessServiceProperties struct.

type StatelessServiceUpdateProperties Uses

type StatelessServiceUpdateProperties struct {
    // InstanceCount - The instance count.
    InstanceCount *int32 `json:"instanceCount,omitempty"`
    // ServiceKind - Possible values include: 'ServiceKindBasicServiceResourceUpdatePropertiesServiceKindServiceResourceUpdateProperties', 'ServiceKindBasicServiceResourceUpdatePropertiesServiceKindStateful', 'ServiceKindBasicServiceResourceUpdatePropertiesServiceKindStateless'
    ServiceKind ServiceKindBasicServiceResourceUpdateProperties `json:"serviceKind,omitempty"`
    // PlacementConstraints - The placement constraints as a string. Placement constraints are boolean expressions on node properties and allow for restricting a service to particular nodes based on the service requirements. For example, to place a service on nodes where NodeType is blue specify the following: "NodeColor == blue)".
    PlacementConstraints *string `json:"placementConstraints,omitempty"`
    // CorrelationScheme - A list that describes the correlation of the service with other services.
    CorrelationScheme *[]ServiceCorrelationDescription `json:"correlationScheme,omitempty"`
    // ServiceLoadMetrics - The service load metrics is given as an array of ServiceLoadMetricDescription objects.
    ServiceLoadMetrics *[]ServiceLoadMetricDescription `json:"serviceLoadMetrics,omitempty"`
    // ServicePlacementPolicies - A list that describes the correlation of the service with other services.
    ServicePlacementPolicies *[]BasicServicePlacementPolicyDescription `json:"servicePlacementPolicies,omitempty"`
    // DefaultMoveCost - Specifies the move cost for the service. Possible values include: 'Zero', 'Low', 'Medium', 'High'
    DefaultMoveCost MoveCost `json:"defaultMoveCost,omitempty"`
}

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

func (StatelessServiceUpdateProperties) AsBasicServiceResourceUpdateProperties Uses

func (ssup StatelessServiceUpdateProperties) AsBasicServiceResourceUpdateProperties() (BasicServiceResourceUpdateProperties, bool)

AsBasicServiceResourceUpdateProperties is the BasicServiceResourceUpdateProperties implementation for StatelessServiceUpdateProperties.

func (StatelessServiceUpdateProperties) AsServiceResourceUpdateProperties Uses

func (ssup StatelessServiceUpdateProperties) AsServiceResourceUpdateProperties() (*ServiceResourceUpdateProperties, bool)

AsServiceResourceUpdateProperties is the BasicServiceResourceUpdateProperties implementation for StatelessServiceUpdateProperties.

func (StatelessServiceUpdateProperties) AsStatefulServiceUpdateProperties Uses

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

AsStatefulServiceUpdateProperties is the BasicServiceResourceUpdateProperties implementation for StatelessServiceUpdateProperties.

func (StatelessServiceUpdateProperties) AsStatelessServiceUpdateProperties Uses

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

AsStatelessServiceUpdateProperties is the BasicServiceResourceUpdateProperties implementation for StatelessServiceUpdateProperties.

func (StatelessServiceUpdateProperties) MarshalJSON Uses

func (ssup StatelessServiceUpdateProperties) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for StatelessServiceUpdateProperties.

func (*StatelessServiceUpdateProperties) UnmarshalJSON Uses

func (ssup *StatelessServiceUpdateProperties) UnmarshalJSON(body []byte) error

UnmarshalJSON is the custom unmarshaler for StatelessServiceUpdateProperties struct.

type Type Uses

type Type string

Type enumerates the values for type.

const (
    // TypeServicePlacementPolicyDescription ...
    TypeServicePlacementPolicyDescription Type = "ServicePlacementPolicyDescription"
)

func PossibleTypeValues Uses

func PossibleTypeValues() []Type

PossibleTypeValues returns an array of possible values for the Type const type.

type UniformInt64RangePartitionSchemeDescription Uses

type UniformInt64RangePartitionSchemeDescription struct {
    // Count - The number of partitions.
    Count *int32 `json:"Count,omitempty"`
    // LowKey - String indicating the lower bound of the partition key range that
    // should be split between the partition ‘Count’
    LowKey *string `json:"LowKey,omitempty"`
    // HighKey - String indicating the upper bound of the partition key range that
    // should be split between the partition ‘Count’
    HighKey *string `json:"HighKey,omitempty"`
    // PartitionScheme - Possible values include: 'PartitionSchemePartitionSchemeDescription', 'PartitionSchemeNamed', 'PartitionSchemeSingleton', 'PartitionSchemeUniformInt64Range'
    PartitionScheme PartitionSchemeBasicPartitionSchemeDescription `json:"partitionScheme,omitempty"`
}

UniformInt64RangePartitionSchemeDescription describes a partitioning scheme where an integer range is allocated evenly across a number of partitions.

func (UniformInt64RangePartitionSchemeDescription) AsBasicPartitionSchemeDescription Uses

func (ui6rpsd UniformInt64RangePartitionSchemeDescription) AsBasicPartitionSchemeDescription() (BasicPartitionSchemeDescription, bool)

AsBasicPartitionSchemeDescription is the BasicPartitionSchemeDescription implementation for UniformInt64RangePartitionSchemeDescription.

func (UniformInt64RangePartitionSchemeDescription) AsNamedPartitionSchemeDescription Uses

func (ui6rpsd UniformInt64RangePartitionSchemeDescription) AsNamedPartitionSchemeDescription() (*NamedPartitionSchemeDescription, bool)

AsNamedPartitionSchemeDescription is the BasicPartitionSchemeDescription implementation for UniformInt64RangePartitionSchemeDescription.

func (UniformInt64RangePartitionSchemeDescription) AsPartitionSchemeDescription Uses

func (ui6rpsd UniformInt64RangePartitionSchemeDescription) AsPartitionSchemeDescription() (*PartitionSchemeDescription, bool)

AsPartitionSchemeDescription is the BasicPartitionSchemeDescription implementation for UniformInt64RangePartitionSchemeDescription.

func (UniformInt64RangePartitionSchemeDescription) AsSingletonPartitionSchemeDescription Uses

func (ui6rpsd UniformInt64RangePartitionSchemeDescription) AsSingletonPartitionSchemeDescription() (*SingletonPartitionSchemeDescription, bool)

AsSingletonPartitionSchemeDescription is the BasicPartitionSchemeDescription implementation for UniformInt64RangePartitionSchemeDescription.

func (UniformInt64RangePartitionSchemeDescription) AsUniformInt64RangePartitionSchemeDescription Uses

func (ui6rpsd UniformInt64RangePartitionSchemeDescription) AsUniformInt64RangePartitionSchemeDescription() (*UniformInt64RangePartitionSchemeDescription, bool)

AsUniformInt64RangePartitionSchemeDescription is the BasicPartitionSchemeDescription implementation for UniformInt64RangePartitionSchemeDescription.

func (UniformInt64RangePartitionSchemeDescription) MarshalJSON Uses

func (ui6rpsd UniformInt64RangePartitionSchemeDescription) MarshalJSON() ([]byte, error)

MarshalJSON is the custom marshaler for UniformInt64RangePartitionSchemeDescription.

type UpgradeMode Uses

type UpgradeMode string

UpgradeMode enumerates the values for upgrade mode.

const (
    // UpgradeModeAutomatic ...
    UpgradeModeAutomatic UpgradeMode = "Automatic"
    // UpgradeModeManual ...
    UpgradeModeManual UpgradeMode = "Manual"
)

func PossibleUpgradeModeValues Uses

func PossibleUpgradeModeValues() []UpgradeMode

PossibleUpgradeModeValues returns an array of possible values for the UpgradeMode const type.

type UpgradeMode1 Uses

type UpgradeMode1 string

UpgradeMode1 enumerates the values for upgrade mode 1.

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

func PossibleUpgradeMode1Values Uses

func PossibleUpgradeMode1Values() []UpgradeMode1

PossibleUpgradeMode1Values returns an array of possible values for the UpgradeMode1 const type.

type X509StoreName Uses

type X509StoreName string

X509StoreName enumerates the values for x509 store name.

const (
    // AddressBook ...
    AddressBook X509StoreName = "AddressBook"
    // AuthRoot ...
    AuthRoot X509StoreName = "AuthRoot"
    // CertificateAuthority ...
    CertificateAuthority X509StoreName = "CertificateAuthority"
    // Disallowed ...
    Disallowed X509StoreName = "Disallowed"
    // My ...
    My  X509StoreName = "My"
    // Root ...
    Root X509StoreName = "Root"
    // TrustedPeople ...
    TrustedPeople X509StoreName = "TrustedPeople"
    // TrustedPublisher ...
    TrustedPublisher X509StoreName = "TrustedPublisher"
)

func PossibleX509StoreNameValues Uses

func PossibleX509StoreNameValues() []X509StoreName

PossibleX509StoreNameValues returns an array of possible values for the X509StoreName const type.

type X509StoreName1 Uses

type X509StoreName1 string

X509StoreName1 enumerates the values for x509 store name 1.

const (
    // X509StoreName1AddressBook ...
    X509StoreName1AddressBook X509StoreName1 = "AddressBook"
    // X509StoreName1AuthRoot ...
    X509StoreName1AuthRoot X509StoreName1 = "AuthRoot"
    // X509StoreName1CertificateAuthority ...
    X509StoreName1CertificateAuthority X509StoreName1 = "CertificateAuthority"
    // X509StoreName1Disallowed ...
    X509StoreName1Disallowed X509StoreName1 = "Disallowed"
    // X509StoreName1My ...
    X509StoreName1My X509StoreName1 = "My"
    // X509StoreName1Root ...
    X509StoreName1Root X509StoreName1 = "Root"
    // X509StoreName1TrustedPeople ...
    X509StoreName1TrustedPeople X509StoreName1 = "TrustedPeople"
    // X509StoreName1TrustedPublisher ...
    X509StoreName1TrustedPublisher X509StoreName1 = "TrustedPublisher"
)

func PossibleX509StoreName1Values Uses

func PossibleX509StoreName1Values() []X509StoreName1

PossibleX509StoreName1Values returns an array of possible values for the X509StoreName1 const type.

Directories

PathSynopsis
servicefabricapi

Package servicefabric imports 10 packages (graph) and is imported by 3 packages. Updated 2019-07-30. Refresh now. Tools for package owners.