From d58c6c8d76a74704c2caa76c0ccda3197e8be176 Mon Sep 17 00:00:00 2001 From: SDK Automation Date: Tue, 28 Jul 2020 03:05:47 +0000 Subject: [PATCH] Generated from aab1454bd9ebd68ac52ae04eacde0ec835d4d5dd add forceUpdateTag to the examples --- .../2018-02-01/servicefabric/applications.go | 5 - .../servicefabric/applicationtypes.go | 4 - .../servicefabric/applicationtypeversions.go | 4 - .../mgmt/2018-02-01/servicefabric/clusters.go | 6 - .../servicefabric/clusterversions.go | 4 - .../mgmt/2018-02-01/servicefabric/enums.go | 454 +++++++++++++ .../mgmt/2018-02-01/servicefabric/models.go | 598 ++++-------------- .../2018-02-01/servicefabric/operations.go | 4 +- .../mgmt/2018-02-01/servicefabric/services.go | 5 - .../mgmt/2018-02-01/servicefabric/version.go | 2 +- 10 files changed, 581 insertions(+), 505 deletions(-) create mode 100644 services/servicefabric/mgmt/2018-02-01/servicefabric/enums.go diff --git a/services/servicefabric/mgmt/2018-02-01/servicefabric/applications.go b/services/servicefabric/mgmt/2018-02-01/servicefabric/applications.go index 72f414f2d789..06148eb102da 100644 --- a/services/servicefabric/mgmt/2018-02-01/servicefabric/applications.go +++ b/services/servicefabric/mgmt/2018-02-01/servicefabric/applications.go @@ -114,7 +114,6 @@ func (client ApplicationsClient) CreateSender(req *http.Request) (future Applica func (client ApplicationsClient) CreateResponder(resp *http.Response) (result ApplicationResource, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -192,7 +191,6 @@ func (client ApplicationsClient) DeleteSender(req *http.Request) (future Applica func (client ApplicationsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent), autorest.ByClosing()) result.Response = resp @@ -270,7 +268,6 @@ func (client ApplicationsClient) GetSender(req *http.Request) (*http.Response, e func (client ApplicationsClient) GetResponder(resp *http.Response) (result ApplicationResource, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -347,7 +344,6 @@ func (client ApplicationsClient) ListSender(req *http.Request) (*http.Response, func (client ApplicationsClient) ListResponder(resp *http.Response) (result ApplicationResourceList, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -428,7 +424,6 @@ func (client ApplicationsClient) UpdateSender(req *http.Request) (future Applica func (client ApplicationsClient) UpdateResponder(resp *http.Response) (result ApplicationResource, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) diff --git a/services/servicefabric/mgmt/2018-02-01/servicefabric/applicationtypes.go b/services/servicefabric/mgmt/2018-02-01/servicefabric/applicationtypes.go index 7725bea7c2fd..55b0361fc7f3 100644 --- a/services/servicefabric/mgmt/2018-02-01/servicefabric/applicationtypes.go +++ b/services/servicefabric/mgmt/2018-02-01/servicefabric/applicationtypes.go @@ -115,7 +115,6 @@ func (client ApplicationTypesClient) CreateSender(req *http.Request) (*http.Resp func (client ApplicationTypesClient) CreateResponder(resp *http.Response) (result ApplicationTypeResource, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -193,7 +192,6 @@ func (client ApplicationTypesClient) DeleteSender(req *http.Request) (future App func (client ApplicationTypesClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent), autorest.ByClosing()) result.Response = resp @@ -271,7 +269,6 @@ func (client ApplicationTypesClient) GetSender(req *http.Request) (*http.Respons func (client ApplicationTypesClient) GetResponder(resp *http.Response) (result ApplicationTypeResource, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -348,7 +345,6 @@ func (client ApplicationTypesClient) ListSender(req *http.Request) (*http.Respon func (client ApplicationTypesClient) ListResponder(resp *http.Response) (result ApplicationTypeResourceList, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) diff --git a/services/servicefabric/mgmt/2018-02-01/servicefabric/applicationtypeversions.go b/services/servicefabric/mgmt/2018-02-01/servicefabric/applicationtypeversions.go index 0a3881209d1a..34486b0c0bdd 100644 --- a/services/servicefabric/mgmt/2018-02-01/servicefabric/applicationtypeversions.go +++ b/services/servicefabric/mgmt/2018-02-01/servicefabric/applicationtypeversions.go @@ -125,7 +125,6 @@ func (client ApplicationTypeVersionsClient) CreateSender(req *http.Request) (fut func (client ApplicationTypeVersionsClient) CreateResponder(resp *http.Response) (result ApplicationTypeVersionResource, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -205,7 +204,6 @@ func (client ApplicationTypeVersionsClient) DeleteSender(req *http.Request) (fut func (client ApplicationTypeVersionsClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent), autorest.ByClosing()) result.Response = resp @@ -285,7 +283,6 @@ func (client ApplicationTypeVersionsClient) GetSender(req *http.Request) (*http. func (client ApplicationTypeVersionsClient) GetResponder(resp *http.Response) (result ApplicationTypeVersionResource, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -364,7 +361,6 @@ func (client ApplicationTypeVersionsClient) ListSender(req *http.Request) (*http func (client ApplicationTypeVersionsClient) ListResponder(resp *http.Response) (result ApplicationTypeVersionResourceList, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) diff --git a/services/servicefabric/mgmt/2018-02-01/servicefabric/clusters.go b/services/servicefabric/mgmt/2018-02-01/servicefabric/clusters.go index fd27d3c1eff0..dd3b5e551054 100644 --- a/services/servicefabric/mgmt/2018-02-01/servicefabric/clusters.go +++ b/services/servicefabric/mgmt/2018-02-01/servicefabric/clusters.go @@ -165,7 +165,6 @@ func (client ClustersClient) CreateSender(req *http.Request) (future ClustersCre func (client ClustersClient) CreateResponder(resp *http.Response) (result Cluster, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -241,7 +240,6 @@ func (client ClustersClient) DeleteSender(req *http.Request) (*http.Response, er func (client ClustersClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusNoContent), autorest.ByClosing()) result.Response = resp @@ -317,7 +315,6 @@ func (client ClustersClient) GetSender(req *http.Request) (*http.Response, error func (client ClustersClient) GetResponder(resp *http.Response) (result Cluster, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -388,7 +385,6 @@ func (client ClustersClient) ListSender(req *http.Request) (*http.Response, erro func (client ClustersClient) ListResponder(resp *http.Response) (result ClusterListResult, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -463,7 +459,6 @@ func (client ClustersClient) ListByResourceGroupSender(req *http.Request) (*http func (client ClustersClient) ListByResourceGroupResponder(resp *http.Response) (result ClusterListResult, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -543,7 +538,6 @@ func (client ClustersClient) UpdateSender(req *http.Request) (future ClustersUpd func (client ClustersClient) UpdateResponder(resp *http.Response) (result Cluster, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) diff --git a/services/servicefabric/mgmt/2018-02-01/servicefabric/clusterversions.go b/services/servicefabric/mgmt/2018-02-01/servicefabric/clusterversions.go index 78cd6ad4592f..5b5d486bba40 100644 --- a/services/servicefabric/mgmt/2018-02-01/servicefabric/clusterversions.go +++ b/services/servicefabric/mgmt/2018-02-01/servicefabric/clusterversions.go @@ -109,7 +109,6 @@ func (client ClusterVersionsClient) GetSender(req *http.Request) (*http.Response func (client ClusterVersionsClient) GetResponder(resp *http.Response) (result ClusterCodeVersionsListResult, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -187,7 +186,6 @@ func (client ClusterVersionsClient) GetByEnvironmentSender(req *http.Request) (* func (client ClusterVersionsClient) GetByEnvironmentResponder(resp *http.Response) (result ClusterCodeVersionsListResult, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -261,7 +259,6 @@ func (client ClusterVersionsClient) ListSender(req *http.Request) (*http.Respons func (client ClusterVersionsClient) ListResponder(resp *http.Response) (result ClusterCodeVersionsListResult, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -337,7 +334,6 @@ func (client ClusterVersionsClient) ListByEnvironmentSender(req *http.Request) ( func (client ClusterVersionsClient) ListByEnvironmentResponder(resp *http.Response) (result ClusterCodeVersionsListResult, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) diff --git a/services/servicefabric/mgmt/2018-02-01/servicefabric/enums.go b/services/servicefabric/mgmt/2018-02-01/servicefabric/enums.go new file mode 100644 index 000000000000..ab84519af89e --- /dev/null +++ b/services/servicefabric/mgmt/2018-02-01/servicefabric/enums.go @@ -0,0 +1,454 @@ +package servicefabric + +// Copyright (c) Microsoft and contributors. All rights reserved. +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// +// See the License for the specific language governing permissions and +// limitations under the License. +// +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +// ArmUpgradeFailureAction enumerates the values for arm upgrade failure action. +type ArmUpgradeFailureAction string + +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" +) + +// PossibleArmUpgradeFailureActionValues returns an array of possible values for the ArmUpgradeFailureAction const type. +func PossibleArmUpgradeFailureActionValues() []ArmUpgradeFailureAction { + return []ArmUpgradeFailureAction{Manual, Rollback} +} + +// ClusterState enumerates the values for cluster state. +type ClusterState string + +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" +) + +// PossibleClusterStateValues returns an array of possible values for the ClusterState const type. +func PossibleClusterStateValues() []ClusterState { + return []ClusterState{AutoScale, BaselineUpgrade, Deploying, EnforcingClusterVersion, Ready, UpdatingInfrastructure, UpdatingUserCertificate, UpdatingUserConfiguration, UpgradeServiceUnreachable, WaitingForNodes} +} + +// DurabilityLevel enumerates the values for durability level. +type DurabilityLevel string + +const ( + // Bronze ... + Bronze DurabilityLevel = "Bronze" + // Gold ... + Gold DurabilityLevel = "Gold" + // Silver ... + Silver DurabilityLevel = "Silver" +) + +// PossibleDurabilityLevelValues returns an array of possible values for the DurabilityLevel const type. +func PossibleDurabilityLevelValues() []DurabilityLevel { + return []DurabilityLevel{Bronze, Gold, Silver} +} + +// Environment enumerates the values for environment. +type Environment string + +const ( + // Linux ... + Linux Environment = "Linux" + // Windows ... + Windows Environment = "Windows" +) + +// PossibleEnvironmentValues returns an array of possible values for the Environment const type. +func PossibleEnvironmentValues() []Environment { + return []Environment{Linux, Windows} +} + +// MoveCost enumerates the values for move cost. +type MoveCost string + +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" +) + +// PossibleMoveCostValues returns an array of possible values for the MoveCost const type. +func PossibleMoveCostValues() []MoveCost { + return []MoveCost{High, Low, Medium, Zero} +} + +// PartitionScheme enumerates the values for partition scheme. +type PartitionScheme string + +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" +) + +// PossiblePartitionSchemeValues returns an array of possible values for the PartitionScheme const type. +func PossiblePartitionSchemeValues() []PartitionScheme { + return []PartitionScheme{Invalid, Named, Singleton, UniformInt64Range} +} + +// PartitionSchemeBasicPartitionSchemeDescription enumerates the values for partition scheme basic partition +// scheme description. +type PartitionSchemeBasicPartitionSchemeDescription string + +const ( + // PartitionSchemeNamed ... + PartitionSchemeNamed PartitionSchemeBasicPartitionSchemeDescription = "Named" + // PartitionSchemePartitionSchemeDescription ... + PartitionSchemePartitionSchemeDescription PartitionSchemeBasicPartitionSchemeDescription = "PartitionSchemeDescription" + // PartitionSchemeSingleton ... + PartitionSchemeSingleton PartitionSchemeBasicPartitionSchemeDescription = "Singleton" + // PartitionSchemeUniformInt64Range ... + PartitionSchemeUniformInt64Range PartitionSchemeBasicPartitionSchemeDescription = "UniformInt64Range" +) + +// PossiblePartitionSchemeBasicPartitionSchemeDescriptionValues returns an array of possible values for the PartitionSchemeBasicPartitionSchemeDescription const type. +func PossiblePartitionSchemeBasicPartitionSchemeDescriptionValues() []PartitionSchemeBasicPartitionSchemeDescription { + return []PartitionSchemeBasicPartitionSchemeDescription{PartitionSchemeNamed, PartitionSchemePartitionSchemeDescription, PartitionSchemeSingleton, PartitionSchemeUniformInt64Range} +} + +// ProvisioningState enumerates the values for provisioning state. +type ProvisioningState string + +const ( + // Canceled ... + Canceled ProvisioningState = "Canceled" + // Failed ... + Failed ProvisioningState = "Failed" + // Succeeded ... + Succeeded ProvisioningState = "Succeeded" + // Updating ... + Updating ProvisioningState = "Updating" +) + +// PossibleProvisioningStateValues returns an array of possible values for the ProvisioningState const type. +func PossibleProvisioningStateValues() []ProvisioningState { + return []ProvisioningState{Canceled, Failed, Succeeded, Updating} +} + +// ReliabilityLevel enumerates the values for reliability level. +type ReliabilityLevel string + +const ( + // ReliabilityLevelBronze ... + ReliabilityLevelBronze ReliabilityLevel = "Bronze" + // ReliabilityLevelGold ... + ReliabilityLevelGold ReliabilityLevel = "Gold" + // ReliabilityLevelNone ... + ReliabilityLevelNone ReliabilityLevel = "None" + // ReliabilityLevelPlatinum ... + ReliabilityLevelPlatinum ReliabilityLevel = "Platinum" + // ReliabilityLevelSilver ... + ReliabilityLevelSilver ReliabilityLevel = "Silver" +) + +// PossibleReliabilityLevelValues returns an array of possible values for the ReliabilityLevel const type. +func PossibleReliabilityLevelValues() []ReliabilityLevel { + return []ReliabilityLevel{ReliabilityLevelBronze, ReliabilityLevelGold, ReliabilityLevelNone, ReliabilityLevelPlatinum, ReliabilityLevelSilver} +} + +// ReliabilityLevel1 enumerates the values for reliability level 1. +type ReliabilityLevel1 string + +const ( + // ReliabilityLevel1Bronze ... + ReliabilityLevel1Bronze ReliabilityLevel1 = "Bronze" + // ReliabilityLevel1Gold ... + ReliabilityLevel1Gold ReliabilityLevel1 = "Gold" + // ReliabilityLevel1None ... + ReliabilityLevel1None ReliabilityLevel1 = "None" + // ReliabilityLevel1Platinum ... + ReliabilityLevel1Platinum ReliabilityLevel1 = "Platinum" + // ReliabilityLevel1Silver ... + ReliabilityLevel1Silver ReliabilityLevel1 = "Silver" +) + +// PossibleReliabilityLevel1Values returns an array of possible values for the ReliabilityLevel1 const type. +func PossibleReliabilityLevel1Values() []ReliabilityLevel1 { + return []ReliabilityLevel1{ReliabilityLevel1Bronze, ReliabilityLevel1Gold, ReliabilityLevel1None, ReliabilityLevel1Platinum, ReliabilityLevel1Silver} +} + +// ServiceCorrelationScheme enumerates the values for service correlation scheme. +type ServiceCorrelationScheme string + +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" +) + +// PossibleServiceCorrelationSchemeValues returns an array of possible values for the ServiceCorrelationScheme const type. +func PossibleServiceCorrelationSchemeValues() []ServiceCorrelationScheme { + return []ServiceCorrelationScheme{ServiceCorrelationSchemeAffinity, ServiceCorrelationSchemeAlignedAffinity, ServiceCorrelationSchemeInvalid, ServiceCorrelationSchemeNonAlignedAffinity} +} + +// ServiceKind enumerates the values for service kind. +type ServiceKind string + +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" +) + +// PossibleServiceKindValues returns an array of possible values for the ServiceKind const type. +func PossibleServiceKindValues() []ServiceKind { + return []ServiceKind{ServiceKindInvalid, ServiceKindStateful, ServiceKindStateless} +} + +// ServiceKindBasicServiceResourceProperties enumerates the values for service kind basic service resource +// properties. +type ServiceKindBasicServiceResourceProperties string + +const ( + // ServiceKindServiceResourceProperties ... + ServiceKindServiceResourceProperties ServiceKindBasicServiceResourceProperties = "ServiceResourceProperties" + // ServiceKindStateful1 ... + ServiceKindStateful1 ServiceKindBasicServiceResourceProperties = "Stateful" + // ServiceKindStateless1 ... + ServiceKindStateless1 ServiceKindBasicServiceResourceProperties = "Stateless" +) + +// PossibleServiceKindBasicServiceResourcePropertiesValues returns an array of possible values for the ServiceKindBasicServiceResourceProperties const type. +func PossibleServiceKindBasicServiceResourcePropertiesValues() []ServiceKindBasicServiceResourceProperties { + return []ServiceKindBasicServiceResourceProperties{ServiceKindServiceResourceProperties, ServiceKindStateful1, ServiceKindStateless1} +} + +// ServiceKindBasicServiceResourceUpdateProperties enumerates the values for service kind basic service +// resource update properties. +type ServiceKindBasicServiceResourceUpdateProperties string + +const ( + // ServiceKindBasicServiceResourceUpdatePropertiesServiceKindServiceResourceUpdateProperties ... + ServiceKindBasicServiceResourceUpdatePropertiesServiceKindServiceResourceUpdateProperties ServiceKindBasicServiceResourceUpdateProperties = "ServiceResourceUpdateProperties" + // ServiceKindBasicServiceResourceUpdatePropertiesServiceKindStateful ... + ServiceKindBasicServiceResourceUpdatePropertiesServiceKindStateful ServiceKindBasicServiceResourceUpdateProperties = "Stateful" + // ServiceKindBasicServiceResourceUpdatePropertiesServiceKindStateless ... + ServiceKindBasicServiceResourceUpdatePropertiesServiceKindStateless ServiceKindBasicServiceResourceUpdateProperties = "Stateless" +) + +// PossibleServiceKindBasicServiceResourceUpdatePropertiesValues returns an array of possible values for the ServiceKindBasicServiceResourceUpdateProperties const type. +func PossibleServiceKindBasicServiceResourceUpdatePropertiesValues() []ServiceKindBasicServiceResourceUpdateProperties { + return []ServiceKindBasicServiceResourceUpdateProperties{ServiceKindBasicServiceResourceUpdatePropertiesServiceKindServiceResourceUpdateProperties, ServiceKindBasicServiceResourceUpdatePropertiesServiceKindStateful, ServiceKindBasicServiceResourceUpdatePropertiesServiceKindStateless} +} + +// ServiceLoadMetricWeight enumerates the values for service load metric weight. +type ServiceLoadMetricWeight string + +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" +) + +// PossibleServiceLoadMetricWeightValues returns an array of possible values for the ServiceLoadMetricWeight const type. +func PossibleServiceLoadMetricWeightValues() []ServiceLoadMetricWeight { + return []ServiceLoadMetricWeight{ServiceLoadMetricWeightHigh, ServiceLoadMetricWeightLow, ServiceLoadMetricWeightMedium, ServiceLoadMetricWeightZero} +} + +// ServicePlacementPolicyType enumerates the values for service placement policy type. +type ServicePlacementPolicyType string + +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" +) + +// PossibleServicePlacementPolicyTypeValues returns an array of possible values for the ServicePlacementPolicyType const type. +func PossibleServicePlacementPolicyTypeValues() []ServicePlacementPolicyType { + return []ServicePlacementPolicyType{ServicePlacementPolicyTypeInvalid, ServicePlacementPolicyTypeInvalidDomain, ServicePlacementPolicyTypeNonPartiallyPlaceService, ServicePlacementPolicyTypePreferredPrimaryDomain, ServicePlacementPolicyTypeRequiredDomain, ServicePlacementPolicyTypeRequiredDomainDistribution} +} + +// Type enumerates the values for type. +type Type string + +const ( + // TypeServicePlacementPolicyDescription ... + TypeServicePlacementPolicyDescription Type = "ServicePlacementPolicyDescription" +) + +// PossibleTypeValues returns an array of possible values for the Type const type. +func PossibleTypeValues() []Type { + return []Type{TypeServicePlacementPolicyDescription} +} + +// UpgradeMode enumerates the values for upgrade mode. +type UpgradeMode string + +const ( + // UpgradeModeAutomatic ... + UpgradeModeAutomatic UpgradeMode = "Automatic" + // UpgradeModeManual ... + UpgradeModeManual UpgradeMode = "Manual" +) + +// PossibleUpgradeModeValues returns an array of possible values for the UpgradeMode const type. +func PossibleUpgradeModeValues() []UpgradeMode { + return []UpgradeMode{UpgradeModeAutomatic, UpgradeModeManual} +} + +// UpgradeMode1 enumerates the values for upgrade mode 1. +type UpgradeMode1 string + +const ( + // UpgradeMode1Automatic ... + UpgradeMode1Automatic UpgradeMode1 = "Automatic" + // UpgradeMode1Manual ... + UpgradeMode1Manual UpgradeMode1 = "Manual" +) + +// PossibleUpgradeMode1Values returns an array of possible values for the UpgradeMode1 const type. +func PossibleUpgradeMode1Values() []UpgradeMode1 { + return []UpgradeMode1{UpgradeMode1Automatic, UpgradeMode1Manual} +} + +// X509StoreName enumerates the values for x509 store name. +type X509StoreName string + +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" +) + +// PossibleX509StoreNameValues returns an array of possible values for the X509StoreName const type. +func PossibleX509StoreNameValues() []X509StoreName { + return []X509StoreName{AddressBook, AuthRoot, CertificateAuthority, Disallowed, My, Root, TrustedPeople, TrustedPublisher} +} + +// X509StoreName1 enumerates the values for x509 store name 1. +type X509StoreName1 string + +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" +) + +// PossibleX509StoreName1Values returns an array of possible values for the X509StoreName1 const type. +func PossibleX509StoreName1Values() []X509StoreName1 { + return []X509StoreName1{X509StoreName1AddressBook, X509StoreName1AuthRoot, X509StoreName1CertificateAuthority, X509StoreName1Disallowed, X509StoreName1My, X509StoreName1Root, X509StoreName1TrustedPeople, X509StoreName1TrustedPublisher} +} diff --git a/services/servicefabric/mgmt/2018-02-01/servicefabric/models.go b/services/servicefabric/mgmt/2018-02-01/servicefabric/models.go index 12de536e10c2..b0707bad23b8 100644 --- a/services/servicefabric/mgmt/2018-02-01/servicefabric/models.go +++ b/services/servicefabric/mgmt/2018-02-01/servicefabric/models.go @@ -31,444 +31,8 @@ import ( // The package's fully qualified name. const fqdn = "github.com/Azure/azure-sdk-for-go/services/servicefabric/mgmt/2018-02-01/servicefabric" -// ArmUpgradeFailureAction enumerates the values for arm upgrade failure action. -type ArmUpgradeFailureAction string - -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" -) - -// PossibleArmUpgradeFailureActionValues returns an array of possible values for the ArmUpgradeFailureAction const type. -func PossibleArmUpgradeFailureActionValues() []ArmUpgradeFailureAction { - return []ArmUpgradeFailureAction{Manual, Rollback} -} - -// ClusterState enumerates the values for cluster state. -type ClusterState string - -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" -) - -// PossibleClusterStateValues returns an array of possible values for the ClusterState const type. -func PossibleClusterStateValues() []ClusterState { - return []ClusterState{AutoScale, BaselineUpgrade, Deploying, EnforcingClusterVersion, Ready, UpdatingInfrastructure, UpdatingUserCertificate, UpdatingUserConfiguration, UpgradeServiceUnreachable, WaitingForNodes} -} - -// DurabilityLevel enumerates the values for durability level. -type DurabilityLevel string - -const ( - // Bronze ... - Bronze DurabilityLevel = "Bronze" - // Gold ... - Gold DurabilityLevel = "Gold" - // Silver ... - Silver DurabilityLevel = "Silver" -) - -// PossibleDurabilityLevelValues returns an array of possible values for the DurabilityLevel const type. -func PossibleDurabilityLevelValues() []DurabilityLevel { - return []DurabilityLevel{Bronze, Gold, Silver} -} - -// Environment enumerates the values for environment. -type Environment string - -const ( - // Linux ... - Linux Environment = "Linux" - // Windows ... - Windows Environment = "Windows" -) - -// PossibleEnvironmentValues returns an array of possible values for the Environment const type. -func PossibleEnvironmentValues() []Environment { - return []Environment{Linux, Windows} -} - -// MoveCost enumerates the values for move cost. -type MoveCost string - -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" -) - -// PossibleMoveCostValues returns an array of possible values for the MoveCost const type. -func PossibleMoveCostValues() []MoveCost { - return []MoveCost{High, Low, Medium, Zero} -} - -// PartitionScheme enumerates the values for partition scheme. -type PartitionScheme string - -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" -) - -// PossiblePartitionSchemeValues returns an array of possible values for the PartitionScheme const type. -func PossiblePartitionSchemeValues() []PartitionScheme { - return []PartitionScheme{Invalid, Named, Singleton, UniformInt64Range} -} - -// PartitionSchemeBasicPartitionSchemeDescription enumerates the values for partition scheme basic partition -// scheme description. -type PartitionSchemeBasicPartitionSchemeDescription string - -const ( - // PartitionSchemeNamed ... - PartitionSchemeNamed PartitionSchemeBasicPartitionSchemeDescription = "Named" - // PartitionSchemePartitionSchemeDescription ... - PartitionSchemePartitionSchemeDescription PartitionSchemeBasicPartitionSchemeDescription = "PartitionSchemeDescription" - // PartitionSchemeSingleton ... - PartitionSchemeSingleton PartitionSchemeBasicPartitionSchemeDescription = "Singleton" - // PartitionSchemeUniformInt64Range ... - PartitionSchemeUniformInt64Range PartitionSchemeBasicPartitionSchemeDescription = "UniformInt64Range" -) - -// PossiblePartitionSchemeBasicPartitionSchemeDescriptionValues returns an array of possible values for the PartitionSchemeBasicPartitionSchemeDescription const type. -func PossiblePartitionSchemeBasicPartitionSchemeDescriptionValues() []PartitionSchemeBasicPartitionSchemeDescription { - return []PartitionSchemeBasicPartitionSchemeDescription{PartitionSchemeNamed, PartitionSchemePartitionSchemeDescription, PartitionSchemeSingleton, PartitionSchemeUniformInt64Range} -} - -// ProvisioningState enumerates the values for provisioning state. -type ProvisioningState string - -const ( - // Canceled ... - Canceled ProvisioningState = "Canceled" - // Failed ... - Failed ProvisioningState = "Failed" - // Succeeded ... - Succeeded ProvisioningState = "Succeeded" - // Updating ... - Updating ProvisioningState = "Updating" -) - -// PossibleProvisioningStateValues returns an array of possible values for the ProvisioningState const type. -func PossibleProvisioningStateValues() []ProvisioningState { - return []ProvisioningState{Canceled, Failed, Succeeded, Updating} -} - -// ReliabilityLevel enumerates the values for reliability level. -type ReliabilityLevel string - -const ( - // ReliabilityLevelBronze ... - ReliabilityLevelBronze ReliabilityLevel = "Bronze" - // ReliabilityLevelGold ... - ReliabilityLevelGold ReliabilityLevel = "Gold" - // ReliabilityLevelNone ... - ReliabilityLevelNone ReliabilityLevel = "None" - // ReliabilityLevelPlatinum ... - ReliabilityLevelPlatinum ReliabilityLevel = "Platinum" - // ReliabilityLevelSilver ... - ReliabilityLevelSilver ReliabilityLevel = "Silver" -) - -// PossibleReliabilityLevelValues returns an array of possible values for the ReliabilityLevel const type. -func PossibleReliabilityLevelValues() []ReliabilityLevel { - return []ReliabilityLevel{ReliabilityLevelBronze, ReliabilityLevelGold, ReliabilityLevelNone, ReliabilityLevelPlatinum, ReliabilityLevelSilver} -} - -// ReliabilityLevel1 enumerates the values for reliability level 1. -type ReliabilityLevel1 string - -const ( - // ReliabilityLevel1Bronze ... - ReliabilityLevel1Bronze ReliabilityLevel1 = "Bronze" - // ReliabilityLevel1Gold ... - ReliabilityLevel1Gold ReliabilityLevel1 = "Gold" - // ReliabilityLevel1None ... - ReliabilityLevel1None ReliabilityLevel1 = "None" - // ReliabilityLevel1Platinum ... - ReliabilityLevel1Platinum ReliabilityLevel1 = "Platinum" - // ReliabilityLevel1Silver ... - ReliabilityLevel1Silver ReliabilityLevel1 = "Silver" -) - -// PossibleReliabilityLevel1Values returns an array of possible values for the ReliabilityLevel1 const type. -func PossibleReliabilityLevel1Values() []ReliabilityLevel1 { - return []ReliabilityLevel1{ReliabilityLevel1Bronze, ReliabilityLevel1Gold, ReliabilityLevel1None, ReliabilityLevel1Platinum, ReliabilityLevel1Silver} -} - -// ServiceCorrelationScheme enumerates the values for service correlation scheme. -type ServiceCorrelationScheme string - -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" -) - -// PossibleServiceCorrelationSchemeValues returns an array of possible values for the ServiceCorrelationScheme const type. -func PossibleServiceCorrelationSchemeValues() []ServiceCorrelationScheme { - return []ServiceCorrelationScheme{ServiceCorrelationSchemeAffinity, ServiceCorrelationSchemeAlignedAffinity, ServiceCorrelationSchemeInvalid, ServiceCorrelationSchemeNonAlignedAffinity} -} - -// ServiceKind enumerates the values for service kind. -type ServiceKind string - -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" -) - -// PossibleServiceKindValues returns an array of possible values for the ServiceKind const type. -func PossibleServiceKindValues() []ServiceKind { - return []ServiceKind{ServiceKindInvalid, ServiceKindStateful, ServiceKindStateless} -} - -// ServiceKindBasicServiceResourceProperties enumerates the values for service kind basic service resource -// properties. -type ServiceKindBasicServiceResourceProperties string - -const ( - // ServiceKindServiceResourceProperties ... - ServiceKindServiceResourceProperties ServiceKindBasicServiceResourceProperties = "ServiceResourceProperties" - // ServiceKindStateful1 ... - ServiceKindStateful1 ServiceKindBasicServiceResourceProperties = "Stateful" - // ServiceKindStateless1 ... - ServiceKindStateless1 ServiceKindBasicServiceResourceProperties = "Stateless" -) - -// PossibleServiceKindBasicServiceResourcePropertiesValues returns an array of possible values for the ServiceKindBasicServiceResourceProperties const type. -func PossibleServiceKindBasicServiceResourcePropertiesValues() []ServiceKindBasicServiceResourceProperties { - return []ServiceKindBasicServiceResourceProperties{ServiceKindServiceResourceProperties, ServiceKindStateful1, ServiceKindStateless1} -} - -// ServiceKindBasicServiceResourceUpdateProperties enumerates the values for service kind basic service -// resource update properties. -type ServiceKindBasicServiceResourceUpdateProperties string - -const ( - // ServiceKindBasicServiceResourceUpdatePropertiesServiceKindServiceResourceUpdateProperties ... - ServiceKindBasicServiceResourceUpdatePropertiesServiceKindServiceResourceUpdateProperties ServiceKindBasicServiceResourceUpdateProperties = "ServiceResourceUpdateProperties" - // ServiceKindBasicServiceResourceUpdatePropertiesServiceKindStateful ... - ServiceKindBasicServiceResourceUpdatePropertiesServiceKindStateful ServiceKindBasicServiceResourceUpdateProperties = "Stateful" - // ServiceKindBasicServiceResourceUpdatePropertiesServiceKindStateless ... - ServiceKindBasicServiceResourceUpdatePropertiesServiceKindStateless ServiceKindBasicServiceResourceUpdateProperties = "Stateless" -) - -// PossibleServiceKindBasicServiceResourceUpdatePropertiesValues returns an array of possible values for the ServiceKindBasicServiceResourceUpdateProperties const type. -func PossibleServiceKindBasicServiceResourceUpdatePropertiesValues() []ServiceKindBasicServiceResourceUpdateProperties { - return []ServiceKindBasicServiceResourceUpdateProperties{ServiceKindBasicServiceResourceUpdatePropertiesServiceKindServiceResourceUpdateProperties, ServiceKindBasicServiceResourceUpdatePropertiesServiceKindStateful, ServiceKindBasicServiceResourceUpdatePropertiesServiceKindStateless} -} - -// ServiceLoadMetricWeight enumerates the values for service load metric weight. -type ServiceLoadMetricWeight string - -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" -) - -// PossibleServiceLoadMetricWeightValues returns an array of possible values for the ServiceLoadMetricWeight const type. -func PossibleServiceLoadMetricWeightValues() []ServiceLoadMetricWeight { - return []ServiceLoadMetricWeight{ServiceLoadMetricWeightHigh, ServiceLoadMetricWeightLow, ServiceLoadMetricWeightMedium, ServiceLoadMetricWeightZero} -} - -// ServicePlacementPolicyType enumerates the values for service placement policy type. -type ServicePlacementPolicyType string - -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" -) - -// PossibleServicePlacementPolicyTypeValues returns an array of possible values for the ServicePlacementPolicyType const type. -func PossibleServicePlacementPolicyTypeValues() []ServicePlacementPolicyType { - return []ServicePlacementPolicyType{ServicePlacementPolicyTypeInvalid, ServicePlacementPolicyTypeInvalidDomain, ServicePlacementPolicyTypeNonPartiallyPlaceService, ServicePlacementPolicyTypePreferredPrimaryDomain, ServicePlacementPolicyTypeRequiredDomain, ServicePlacementPolicyTypeRequiredDomainDistribution} -} - -// Type enumerates the values for type. -type Type string - -const ( - // TypeServicePlacementPolicyDescription ... - TypeServicePlacementPolicyDescription Type = "ServicePlacementPolicyDescription" -) - -// PossibleTypeValues returns an array of possible values for the Type const type. -func PossibleTypeValues() []Type { - return []Type{TypeServicePlacementPolicyDescription} -} - -// UpgradeMode enumerates the values for upgrade mode. -type UpgradeMode string - -const ( - // UpgradeModeAutomatic ... - UpgradeModeAutomatic UpgradeMode = "Automatic" - // UpgradeModeManual ... - UpgradeModeManual UpgradeMode = "Manual" -) - -// PossibleUpgradeModeValues returns an array of possible values for the UpgradeMode const type. -func PossibleUpgradeModeValues() []UpgradeMode { - return []UpgradeMode{UpgradeModeAutomatic, UpgradeModeManual} -} - -// UpgradeMode1 enumerates the values for upgrade mode 1. -type UpgradeMode1 string - -const ( - // UpgradeMode1Automatic ... - UpgradeMode1Automatic UpgradeMode1 = "Automatic" - // UpgradeMode1Manual ... - UpgradeMode1Manual UpgradeMode1 = "Manual" -) - -// PossibleUpgradeMode1Values returns an array of possible values for the UpgradeMode1 const type. -func PossibleUpgradeMode1Values() []UpgradeMode1 { - return []UpgradeMode1{UpgradeMode1Automatic, UpgradeMode1Manual} -} - -// X509StoreName enumerates the values for x509 store name. -type X509StoreName string - -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" -) - -// PossibleX509StoreNameValues returns an array of possible values for the X509StoreName const type. -func PossibleX509StoreNameValues() []X509StoreName { - return []X509StoreName{AddressBook, AuthRoot, CertificateAuthority, Disallowed, My, Root, TrustedPeople, TrustedPublisher} -} - -// X509StoreName1 enumerates the values for x509 store name 1. -type X509StoreName1 string - -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" -) - -// PossibleX509StoreName1Values returns an array of possible values for the X509StoreName1 const type. -func PossibleX509StoreName1Values() []X509StoreName1 { - return []X509StoreName1{X509StoreName1AddressBook, X509StoreName1AuthRoot, X509StoreName1CertificateAuthority, X509StoreName1Disallowed, X509StoreName1My, X509StoreName1Root, X509StoreName1TrustedPeople, X509StoreName1TrustedPublisher} -} - -// ApplicationDeltaHealthPolicy defines a delta health policy used to evaluate the health of an application -// or one of its child entities when upgrading the cluster. +// ApplicationDeltaHealthPolicy defines a delta health policy used to evaluate the health of an application or +// one of its child entities when upgrading the cluster. 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"` @@ -488,8 +52,8 @@ func (adhp ApplicationDeltaHealthPolicy) MarshalJSON() ([]byte, error) { return json.Marshal(objectMap) } -// ApplicationHealthPolicy defines a health policy used to evaluate the health of an application or one of -// its children entities. +// ApplicationHealthPolicy defines a health policy used to evaluate the health of an application or one of its +// children entities. type ApplicationHealthPolicy struct { // DefaultServiceTypeHealthPolicy - The health policy used by default to evaluate the health of a service type. DefaultServiceTypeHealthPolicy *ServiceTypeHealthPolicy `json:"defaultServiceTypeHealthPolicy,omitempty"` @@ -509,8 +73,8 @@ func (ahp ApplicationHealthPolicy) MarshalJSON() ([]byte, error) { return json.Marshal(objectMap) } -// 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. +// 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 ApplicationMetricDescription struct { // Name - The name of the metric. Name *string `json:"Name,omitempty"` @@ -988,6 +552,12 @@ type ApplicationTypeResourceProperties struct { ProvisioningState *string `json:"provisioningState,omitempty"` } +// MarshalJSON is the custom marshaler for ApplicationTypeResourceProperties. +func (atrp ApplicationTypeResourceProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + return json.Marshal(objectMap) +} + // ApplicationTypesDeleteFuture an abstraction for monitoring and retrieving the results of a long-running // operation. type ApplicationTypesDeleteFuture struct { @@ -1011,8 +581,8 @@ func (future *ApplicationTypesDeleteFuture) Result(client ApplicationTypesClient return } -// ApplicationTypeVersionResource an application type version resource for the specified application type -// name resource. +// ApplicationTypeVersionResource an application type version resource for the specified application type name +// resource. type ApplicationTypeVersionResource struct { autorest.Response `json:"-"` // ApplicationTypeVersionResourceProperties - The properties of the application type version resource. @@ -1189,8 +759,8 @@ type ApplicationUpgradePolicy struct { ApplicationHealthPolicy *ArmApplicationHealthPolicy `json:"applicationHealthPolicy,omitempty"` } -// ArmApplicationHealthPolicy defines a health policy used to evaluate the health of an application or one -// of its children entities. +// ArmApplicationHealthPolicy defines a health policy used to evaluate the health of an application or one of +// its children entities. type ArmApplicationHealthPolicy struct { // ConsiderWarningAsError - Indicates whether warnings are treated with the same severity as errors. ConsiderWarningAsError *bool `json:"ConsiderWarningAsError,omitempty"` @@ -1239,8 +809,8 @@ type ArmRollingUpgradeMonitoringPolicy struct { UpgradeDomainTimeout *string `json:"upgradeDomainTimeout,omitempty"` } -// ArmServiceTypeHealthPolicy represents the health policy used to evaluate the health of services -// belonging to a service type. +// ArmServiceTypeHealthPolicy represents the health policy used to evaluate the health of services belonging to +// a service type. 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"` @@ -1490,8 +1060,7 @@ func (ccvr *ClusterCodeVersionsResult) UnmarshalJSON(body []byte) error { return nil } -// ClusterHealthPolicy defines a health policy used to evaluate the health of the cluster or of a cluster -// node. +// ClusterHealthPolicy defines a health policy used to evaluate the health of the cluster or of a cluster node. 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. @@ -1601,8 +1170,65 @@ type ClusterProperties struct { VMImage *string `json:"vmImage,omitempty"` } -// ClusterPropertiesUpdateParameters describes the cluster resource properties that can be updated during -// PATCH operation. +// MarshalJSON is the custom marshaler for ClusterProperties. +func (cp ClusterProperties) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if cp.AddOnFeatures != nil { + objectMap["addOnFeatures"] = cp.AddOnFeatures + } + if cp.AzureActiveDirectory != nil { + objectMap["azureActiveDirectory"] = cp.AzureActiveDirectory + } + if cp.Certificate != nil { + objectMap["certificate"] = cp.Certificate + } + if cp.CertificateCommonNames != nil { + objectMap["certificateCommonNames"] = cp.CertificateCommonNames + } + if cp.ClientCertificateCommonNames != nil { + objectMap["clientCertificateCommonNames"] = cp.ClientCertificateCommonNames + } + if cp.ClientCertificateThumbprints != nil { + objectMap["clientCertificateThumbprints"] = cp.ClientCertificateThumbprints + } + if cp.ClusterCodeVersion != nil { + objectMap["clusterCodeVersion"] = cp.ClusterCodeVersion + } + if cp.DiagnosticsStorageAccountConfig != nil { + objectMap["diagnosticsStorageAccountConfig"] = cp.DiagnosticsStorageAccountConfig + } + if cp.FabricSettings != nil { + objectMap["fabricSettings"] = cp.FabricSettings + } + if cp.ManagementEndpoint != nil { + objectMap["managementEndpoint"] = cp.ManagementEndpoint + } + if cp.NodeTypes != nil { + objectMap["nodeTypes"] = cp.NodeTypes + } + if cp.ReliabilityLevel != "" { + objectMap["reliabilityLevel"] = cp.ReliabilityLevel + } + if cp.ReverseProxyCertificate != nil { + objectMap["reverseProxyCertificate"] = cp.ReverseProxyCertificate + } + if cp.ReverseProxyCertificateCommonNames != nil { + objectMap["reverseProxyCertificateCommonNames"] = cp.ReverseProxyCertificateCommonNames + } + if cp.UpgradeDescription != nil { + objectMap["upgradeDescription"] = cp.UpgradeDescription + } + if cp.UpgradeMode != "" { + objectMap["upgradeMode"] = cp.UpgradeMode + } + if cp.VMImage != nil { + objectMap["vmImage"] = cp.VMImage + } + return json.Marshal(objectMap) +} + +// ClusterPropertiesUpdateParameters describes the cluster resource properties that can be updated during PATCH +// operation. type ClusterPropertiesUpdateParameters struct { // AddOnFeatures - The list of add-on features to enable in the cluster. AddOnFeatures *[]string `json:"addOnFeatures,omitempty"` @@ -1639,8 +1265,7 @@ type ClusterPropertiesUpdateParameters struct { UpgradeMode UpgradeMode1 `json:"upgradeMode,omitempty"` } -// ClustersCreateFuture an abstraction for monitoring and retrieving the results of a long-running -// operation. +// ClustersCreateFuture an abstraction for monitoring and retrieving the results of a long-running operation. type ClustersCreateFuture struct { azure.Future } @@ -1668,8 +1293,7 @@ func (future *ClustersCreateFuture) Result(client ClustersClient) (c Cluster, er return } -// ClustersUpdateFuture an abstraction for monitoring and retrieving the results of a long-running -// operation. +// ClustersUpdateFuture an abstraction for monitoring and retrieving the results of a long-running operation. type ClustersUpdateFuture struct { azure.Future } @@ -1818,8 +1442,7 @@ type ClusterVersionDetails struct { Environment Environment `json:"environment,omitempty"` } -// DiagnosticsStorageAccountConfig the storage account information for storing Service Fabric diagnostic -// logs. +// DiagnosticsStorageAccountConfig the storage account information for storing Service Fabric diagnostic logs. type DiagnosticsStorageAccountConfig struct { // StorageAccountName - The Azure storage account name. StorageAccountName *string `json:"storageAccountName,omitempty"` @@ -1906,8 +1529,8 @@ func (npsd NamedPartitionSchemeDescription) AsBasicPartitionSchemeDescription() return &npsd, true } -// NodeTypeDescription describes a node type in the cluster, each node type represents sub set of nodes in -// the cluster. +// NodeTypeDescription describes a node type in the cluster, each node type represents sub set of nodes in the +// cluster. type NodeTypeDescription struct { // Name - The name of the node type. Name *string `json:"name,omitempty"` @@ -1985,6 +1608,15 @@ type OperationListResult struct { NextLink *string `json:"nextLink,omitempty"` } +// MarshalJSON is the custom marshaler for OperationListResult. +func (olr OperationListResult) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if olr.Value != nil { + objectMap["value"] = olr.Value + } + return json.Marshal(objectMap) +} + // OperationListResultIterator provides access to a complete listing of OperationResult values. type OperationListResultIterator struct { i int @@ -2053,10 +1685,15 @@ func (olr OperationListResult) IsEmpty() bool { return olr.Value == nil || len(*olr.Value) == 0 } +// hasNextLink returns true if the NextLink is not empty. +func (olr OperationListResult) hasNextLink() bool { + return olr.NextLink != nil && len(*olr.NextLink) != 0 +} + // operationListResultPreparer prepares a request to retrieve the next set of results. // It returns nil if no more results exist. func (olr OperationListResult) operationListResultPreparer(ctx context.Context) (*http.Request, error) { - if olr.NextLink == nil || len(to.String(olr.NextLink)) < 1 { + if !olr.hasNextLink() { return nil, nil } return autorest.Prepare((&http.Request{}).WithContext(ctx), @@ -2084,11 +1721,16 @@ func (page *OperationListResultPage) NextWithContext(ctx context.Context) (err e tracing.EndSpan(ctx, sc, err) }() } - next, err := page.fn(ctx, page.olr) - if err != nil { - return err + for { + next, err := page.fn(ctx, page.olr) + if err != nil { + return err + } + page.olr = next + if !next.hasNextLink() || !next.IsEmpty() { + break + } } - page.olr = next return nil } @@ -2240,6 +1882,15 @@ type ProxyResource struct { Location *string `json:"location,omitempty"` } +// MarshalJSON is the custom marshaler for ProxyResource. +func (pr ProxyResource) MarshalJSON() ([]byte, error) { + objectMap := make(map[string]interface{}) + if pr.Location != nil { + objectMap["location"] = pr.Location + } + return json.Marshal(objectMap) +} + // Resource the resource model definition. type Resource struct { // ID - READ-ONLY; Azure resource identifier. @@ -2274,8 +1925,8 @@ type ServerCertificateCommonName struct { CertificateIssuerThumbprint *string `json:"certificateIssuerThumbprint,omitempty"` } -// ServerCertificateCommonNames describes a list of server certificates referenced by common name that are -// used to secure the cluster. +// ServerCertificateCommonNames describes a list of server certificates referenced by common name that are used +// to secure the cluster. 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"` @@ -3005,8 +2656,7 @@ func (srup *ServiceResourceUpdateProperties) UnmarshalJSON(body []byte) error { return nil } -// ServicesCreateFuture an abstraction for monitoring and retrieving the results of a long-running -// operation. +// ServicesCreateFuture an abstraction for monitoring and retrieving the results of a long-running operation. type ServicesCreateFuture struct { azure.Future } @@ -3034,8 +2684,7 @@ func (future *ServicesCreateFuture) Result(client ServicesClient) (sr ServiceRes return } -// ServicesDeleteFuture an abstraction for monitoring and retrieving the results of a long-running -// operation. +// ServicesDeleteFuture an abstraction for monitoring and retrieving the results of a long-running operation. type ServicesDeleteFuture struct { azure.Future } @@ -3057,8 +2706,7 @@ func (future *ServicesDeleteFuture) Result(client ServicesClient) (ar autorest.R return } -// ServicesUpdateFuture an abstraction for monitoring and retrieving the results of a long-running -// operation. +// ServicesUpdateFuture an abstraction for monitoring and retrieving the results of a long-running operation. type ServicesUpdateFuture struct { azure.Future } @@ -3095,8 +2743,8 @@ type ServiceTypeDeltaHealthPolicy struct { MaxPercentDeltaUnhealthyServices *int32 `json:"maxPercentDeltaUnhealthyServices,omitempty"` } -// ServiceTypeHealthPolicy represents the health policy used to evaluate the health of services belonging -// to a service type. +// ServiceTypeHealthPolicy represents the health policy used to evaluate the health of services belonging to a +// service type. 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"` diff --git a/services/servicefabric/mgmt/2018-02-01/servicefabric/operations.go b/services/servicefabric/mgmt/2018-02-01/servicefabric/operations.go index 31d132270694..dff778f68a67 100644 --- a/services/servicefabric/mgmt/2018-02-01/servicefabric/operations.go +++ b/services/servicefabric/mgmt/2018-02-01/servicefabric/operations.go @@ -73,6 +73,9 @@ func (client OperationsClient) List(ctx context.Context, APIVersion string) (res if err != nil { err = autorest.NewErrorWithError(err, "servicefabric.OperationsClient", "List", resp, "Failure responding to request") } + if result.olr.hasNextLink() && result.olr.IsEmpty() { + err = result.NextWithContext(ctx) + } return } @@ -102,7 +105,6 @@ func (client OperationsClient) ListSender(req *http.Request) (*http.Response, er func (client OperationsClient) ListResponder(resp *http.Response) (result OperationListResult, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) diff --git a/services/servicefabric/mgmt/2018-02-01/servicefabric/services.go b/services/servicefabric/mgmt/2018-02-01/servicefabric/services.go index df7ef4f9c0b3..351cf1083f95 100644 --- a/services/servicefabric/mgmt/2018-02-01/servicefabric/services.go +++ b/services/servicefabric/mgmt/2018-02-01/servicefabric/services.go @@ -116,7 +116,6 @@ func (client ServicesClient) CreateSender(req *http.Request) (future ServicesCre func (client ServicesClient) CreateResponder(resp *http.Response) (result ServiceResource, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -196,7 +195,6 @@ func (client ServicesClient) DeleteSender(req *http.Request) (future ServicesDel func (client ServicesClient) DeleteResponder(resp *http.Response) (result autorest.Response, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted, http.StatusNoContent), autorest.ByClosing()) result.Response = resp @@ -276,7 +274,6 @@ func (client ServicesClient) GetSender(req *http.Request) (*http.Response, error func (client ServicesClient) GetResponder(resp *http.Response) (result ServiceResource, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -355,7 +352,6 @@ func (client ServicesClient) ListSender(req *http.Request) (*http.Response, erro func (client ServicesClient) ListResponder(resp *http.Response) (result ServiceResourceList, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -438,7 +434,6 @@ func (client ServicesClient) UpdateSender(req *http.Request) (future ServicesUpd func (client ServicesClient) UpdateResponder(resp *http.Response) (result ServiceResource, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) diff --git a/services/servicefabric/mgmt/2018-02-01/servicefabric/version.go b/services/servicefabric/mgmt/2018-02-01/servicefabric/version.go index 9f2d3bd80f53..97f64ff50d92 100644 --- a/services/servicefabric/mgmt/2018-02-01/servicefabric/version.go +++ b/services/servicefabric/mgmt/2018-02-01/servicefabric/version.go @@ -21,7 +21,7 @@ import "github.com/Azure/azure-sdk-for-go/version" // UserAgent returns the UserAgent string to use when sending http.Requests. func UserAgent() string { - return "Azure-SDK-For-Go/" + version.Number + " servicefabric/2018-02-01" + return "Azure-SDK-For-Go/" + Version() + " servicefabric/2018-02-01" } // Version returns the semantic version (see http://semver.org) of the client.