From 84893246b8460765e4640336920631b9989a3c2d Mon Sep 17 00:00:00 2001 From: SDK Automation Date: Tue, 23 Jun 2020 02:32:06 +0000 Subject: [PATCH] Generated from 85bfc3112af8c8af08651e9712b59e7bd5931f2a Add swagger definition for user assigned identity (#9737) --- .../2020-02-01/containerservice/agentpools.go | 15 +-------------- .../containerservice/containerservices.go | 6 ------ .../containerservice/managedclusters.go | 14 -------------- .../containerservice/openshiftmanagedclusters.go | 6 ------ .../2020-02-01/containerservice/operations.go | 1 - .../mgmt/2020-02-01/containerservice/version.go | 2 +- 6 files changed, 2 insertions(+), 42 deletions(-) diff --git a/services/containerservice/mgmt/2020-02-01/containerservice/agentpools.go b/services/containerservice/mgmt/2020-02-01/containerservice/agentpools.go index a7e112f0d182..3d8f8bbfcb4c 100644 --- a/services/containerservice/mgmt/2020-02-01/containerservice/agentpools.go +++ b/services/containerservice/mgmt/2020-02-01/containerservice/agentpools.go @@ -65,14 +65,7 @@ func (client AgentPoolsClient) CreateOrUpdate(ctx context.Context, resourceGroup {TargetValue: resourceName, Constraints: []validation.Constraint{{Target: "resourceName", Name: validation.MaxLength, Rule: 63, Chain: nil}, {Target: "resourceName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "resourceName", Name: validation.Pattern, Rule: `^[a-zA-Z0-9]$|^[a-zA-Z0-9][-_a-zA-Z0-9]{0,61}[a-zA-Z0-9]$`, Chain: nil}}}, - {TargetValue: parameters, - Constraints: []validation.Constraint{{Target: "parameters.ManagedClusterAgentPoolProfileProperties", Name: validation.Null, Rule: false, - Chain: []validation.Constraint{{Target: "parameters.ManagedClusterAgentPoolProfileProperties.Count", Name: validation.Null, Rule: true, - Chain: []validation.Constraint{{Target: "parameters.ManagedClusterAgentPoolProfileProperties.Count", Name: validation.InclusiveMaximum, Rule: int64(100), Chain: nil}, - {Target: "parameters.ManagedClusterAgentPoolProfileProperties.Count", Name: validation.InclusiveMinimum, Rule: int64(1), Chain: nil}, - }}, - }}}}}); err != nil { + {Target: "resourceName", Name: validation.Pattern, Rule: `^[a-zA-Z0-9]$|^[a-zA-Z0-9][-_a-zA-Z0-9]{0,61}[a-zA-Z0-9]$`, Chain: nil}}}}); err != nil { return result, validation.NewError("containerservice.AgentPoolsClient", "CreateOrUpdate", err.Error()) } @@ -132,7 +125,6 @@ func (client AgentPoolsClient) CreateOrUpdateSender(req *http.Request) (future A func (client AgentPoolsClient) CreateOrUpdateResponder(resp *http.Response) (result AgentPool, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -220,7 +212,6 @@ func (client AgentPoolsClient) DeleteSender(req *http.Request) (future AgentPool func (client AgentPoolsClient) 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 @@ -307,7 +298,6 @@ func (client AgentPoolsClient) GetSender(req *http.Request) (*http.Response, err func (client AgentPoolsClient) GetResponder(resp *http.Response) (result AgentPool, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -393,7 +383,6 @@ func (client AgentPoolsClient) GetAvailableAgentPoolVersionsSender(req *http.Req func (client AgentPoolsClient) GetAvailableAgentPoolVersionsResponder(resp *http.Response) (result AgentPoolAvailableVersions, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -482,7 +471,6 @@ func (client AgentPoolsClient) GetUpgradeProfileSender(req *http.Request) (*http func (client AgentPoolsClient) GetUpgradeProfileResponder(resp *http.Response) (result AgentPoolUpgradeProfile, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -570,7 +558,6 @@ func (client AgentPoolsClient) ListSender(req *http.Request) (*http.Response, er func (client AgentPoolsClient) ListResponder(resp *http.Response) (result AgentPoolListResult, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) diff --git a/services/containerservice/mgmt/2020-02-01/containerservice/containerservices.go b/services/containerservice/mgmt/2020-02-01/containerservice/containerservices.go index c059245f0e0e..67d5bfbb7600 100644 --- a/services/containerservice/mgmt/2020-02-01/containerservice/containerservices.go +++ b/services/containerservice/mgmt/2020-02-01/containerservice/containerservices.go @@ -149,7 +149,6 @@ func (client ContainerServicesClient) CreateOrUpdateSender(req *http.Request) (f func (client ContainerServicesClient) CreateOrUpdateResponder(resp *http.Response) (result ContainerService, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated, http.StatusAccepted), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -228,7 +227,6 @@ func (client ContainerServicesClient) DeleteSender(req *http.Request) (future Co func (client ContainerServicesClient) 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 @@ -305,7 +303,6 @@ func (client ContainerServicesClient) GetSender(req *http.Request) (*http.Respon func (client ContainerServicesClient) GetResponder(resp *http.Response) (result ContainerService, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -378,7 +375,6 @@ func (client ContainerServicesClient) ListSender(req *http.Request) (*http.Respo func (client ContainerServicesClient) ListResponder(resp *http.Response) (result ListResult, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -492,7 +488,6 @@ func (client ContainerServicesClient) ListByResourceGroupSender(req *http.Reques func (client ContainerServicesClient) ListByResourceGroupResponder(resp *http.Response) (result ListResult, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -609,7 +604,6 @@ func (client ContainerServicesClient) ListOrchestratorsSender(req *http.Request) func (client ContainerServicesClient) ListOrchestratorsResponder(resp *http.Response) (result OrchestratorVersionProfileListResult, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) diff --git a/services/containerservice/mgmt/2020-02-01/containerservice/managedclusters.go b/services/containerservice/mgmt/2020-02-01/containerservice/managedclusters.go index b64582bb359e..5679d74d637d 100644 --- a/services/containerservice/mgmt/2020-02-01/containerservice/managedclusters.go +++ b/services/containerservice/mgmt/2020-02-01/containerservice/managedclusters.go @@ -169,7 +169,6 @@ func (client ManagedClustersClient) CreateOrUpdateSender(req *http.Request) (fut func (client ManagedClustersClient) CreateOrUpdateResponder(resp *http.Response) (result ManagedCluster, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -255,7 +254,6 @@ func (client ManagedClustersClient) DeleteSender(req *http.Request) (future Mana func (client ManagedClustersClient) 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 @@ -340,7 +338,6 @@ func (client ManagedClustersClient) GetSender(req *http.Request) (*http.Response func (client ManagedClustersClient) GetResponder(resp *http.Response) (result ManagedCluster, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -429,7 +426,6 @@ func (client ManagedClustersClient) GetAccessProfileSender(req *http.Request) (* func (client ManagedClustersClient) GetAccessProfileResponder(resp *http.Response) (result ManagedClusterAccessProfile, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -516,7 +512,6 @@ func (client ManagedClustersClient) GetUpgradeProfileSender(req *http.Request) ( func (client ManagedClustersClient) GetUpgradeProfileResponder(resp *http.Response) (result ManagedClusterUpgradeProfile, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -589,7 +584,6 @@ func (client ManagedClustersClient) ListSender(req *http.Request) (*http.Respons func (client ManagedClustersClient) ListResponder(resp *http.Response) (result ManagedClusterListResult, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -708,7 +702,6 @@ func (client ManagedClustersClient) ListByResourceGroupSender(req *http.Request) func (client ManagedClustersClient) ListByResourceGroupResponder(resp *http.Response) (result ManagedClusterListResult, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -832,7 +825,6 @@ func (client ManagedClustersClient) ListClusterAdminCredentialsSender(req *http. func (client ManagedClustersClient) ListClusterAdminCredentialsResponder(resp *http.Response) (result CredentialResults, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -919,7 +911,6 @@ func (client ManagedClustersClient) ListClusterMonitoringUserCredentialsSender(r func (client ManagedClustersClient) ListClusterMonitoringUserCredentialsResponder(resp *http.Response) (result CredentialResults, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -1006,7 +997,6 @@ func (client ManagedClustersClient) ListClusterUserCredentialsSender(req *http.R func (client ManagedClustersClient) ListClusterUserCredentialsResponder(resp *http.Response) (result CredentialResults, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -1098,7 +1088,6 @@ func (client ManagedClustersClient) ResetAADProfileSender(req *http.Request) (fu func (client ManagedClustersClient) ResetAADProfileResponder(resp *http.Response) (result autorest.Response, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), autorest.ByClosing()) result.Response = resp @@ -1188,7 +1177,6 @@ func (client ManagedClustersClient) ResetServicePrincipalProfileSender(req *http func (client ManagedClustersClient) ResetServicePrincipalProfileResponder(resp *http.Response) (result autorest.Response, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusAccepted), autorest.ByClosing()) result.Response = resp @@ -1273,7 +1261,6 @@ func (client ManagedClustersClient) RotateClusterCertificatesSender(req *http.Re func (client ManagedClustersClient) RotateClusterCertificatesResponder(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 @@ -1361,7 +1348,6 @@ func (client ManagedClustersClient) UpdateTagsSender(req *http.Request) (future func (client ManagedClustersClient) UpdateTagsResponder(resp *http.Response) (result ManagedCluster, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) diff --git a/services/containerservice/mgmt/2020-02-01/containerservice/openshiftmanagedclusters.go b/services/containerservice/mgmt/2020-02-01/containerservice/openshiftmanagedclusters.go index bec338c6523b..9873abd58042 100644 --- a/services/containerservice/mgmt/2020-02-01/containerservice/openshiftmanagedclusters.go +++ b/services/containerservice/mgmt/2020-02-01/containerservice/openshiftmanagedclusters.go @@ -127,7 +127,6 @@ func (client OpenShiftManagedClustersClient) CreateOrUpdateSender(req *http.Requ func (client OpenShiftManagedClustersClient) CreateOrUpdateResponder(resp *http.Response) (result OpenShiftManagedCluster, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK, http.StatusCreated), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -209,7 +208,6 @@ func (client OpenShiftManagedClustersClient) DeleteSender(req *http.Request) (fu func (client OpenShiftManagedClustersClient) 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 @@ -290,7 +288,6 @@ func (client OpenShiftManagedClustersClient) GetSender(req *http.Request) (*http func (client OpenShiftManagedClustersClient) GetResponder(resp *http.Response) (result OpenShiftManagedCluster, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -363,7 +360,6 @@ func (client OpenShiftManagedClustersClient) ListSender(req *http.Request) (*htt func (client OpenShiftManagedClustersClient) ListResponder(resp *http.Response) (result OpenShiftManagedClusterListResult, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -482,7 +478,6 @@ func (client OpenShiftManagedClustersClient) ListByResourceGroupSender(req *http func (client OpenShiftManagedClustersClient) ListByResourceGroupResponder(resp *http.Response) (result OpenShiftManagedClusterListResult, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) @@ -604,7 +599,6 @@ func (client OpenShiftManagedClustersClient) UpdateTagsSender(req *http.Request) func (client OpenShiftManagedClustersClient) UpdateTagsResponder(resp *http.Response) (result OpenShiftManagedCluster, err error) { err = autorest.Respond( resp, - client.ByInspecting(), azure.WithErrorUnlessStatusCode(http.StatusOK), autorest.ByUnmarshallingJSON(&result), autorest.ByClosing()) diff --git a/services/containerservice/mgmt/2020-02-01/containerservice/operations.go b/services/containerservice/mgmt/2020-02-01/containerservice/operations.go index f8ca1cc7e919..7ab421715ae9 100644 --- a/services/containerservice/mgmt/2020-02-01/containerservice/operations.go +++ b/services/containerservice/mgmt/2020-02-01/containerservice/operations.go @@ -100,7 +100,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/containerservice/mgmt/2020-02-01/containerservice/version.go b/services/containerservice/mgmt/2020-02-01/containerservice/version.go index a0e5dde35a9d..c045340ce797 100644 --- a/services/containerservice/mgmt/2020-02-01/containerservice/version.go +++ b/services/containerservice/mgmt/2020-02-01/containerservice/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 + " containerservice/2020-02-01" + return "Azure-SDK-For-Go/" + Version() + " containerservice/2020-02-01" } // Version returns the semantic version (see http://semver.org) of the client.