From 2dcbadaf2ff8f950f49c20d9572072fc72159b3a Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Tue, 9 Nov 2021 02:04:06 +0000 Subject: [PATCH] CodeGen from PR 16681 in Azure/azure-rest-api-specs [Hub Generated] Public private branch 'ikanni/2021-04-30-preview_new' (#16681) * Copy the existing version 2020-06-30-preview as new version 2020-06-30-preview * [Automanage]Added new version 2021-04-30-preview * Fixed Hassan's commnet * Updated one example * Added report for Michele * Pushing for Michele * Pushing changes for Michele * Pushing changes for Michele * Pushing changes for Michele * Pushing changes for Michele * Pushing changes for Michele * Pushing changes for Michele * Fixed comments * Fixed comments --- .../2020-06-30-preview/automanage/CHANGELOG.md | 2 +- .../mgmt/2020-06-30-preview/automanage/_meta.json | 2 +- .../2020-06-30-preview/automanage/accounts.go | 15 +++++---------- .../automanage/configurationprofileassignments.go | 12 ++++-------- .../automanage/configurationprofilepreferences.go | 15 +++++---------- .../mgmt/2020-06-30-preview/automanage/models.go | 5 +++-- 6 files changed, 19 insertions(+), 32 deletions(-) diff --git a/services/preview/automanage/mgmt/2020-06-30-preview/automanage/CHANGELOG.md b/services/preview/automanage/mgmt/2020-06-30-preview/automanage/CHANGELOG.md index 52911e4cc5e4..a1ecf841edb0 100644 --- a/services/preview/automanage/mgmt/2020-06-30-preview/automanage/CHANGELOG.md +++ b/services/preview/automanage/mgmt/2020-06-30-preview/automanage/CHANGELOG.md @@ -1,2 +1,2 @@ -# Change History +# Unreleased diff --git a/services/preview/automanage/mgmt/2020-06-30-preview/automanage/_meta.json b/services/preview/automanage/mgmt/2020-06-30-preview/automanage/_meta.json index e445fec6859e..556a6b1b8ad5 100644 --- a/services/preview/automanage/mgmt/2020-06-30-preview/automanage/_meta.json +++ b/services/preview/automanage/mgmt/2020-06-30-preview/automanage/_meta.json @@ -1,5 +1,5 @@ { - "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", + "commit": "5c9696d7b70d8053be1a4200d89ed9138b27e42b", "readme": "/_/azure-rest-api-specs/specification/automanage/resource-manager/readme.md", "tag": "package-2020-06-30-preview", "use": "@microsoft.azure/autorest.go@2.1.187", diff --git a/services/preview/automanage/mgmt/2020-06-30-preview/automanage/accounts.go b/services/preview/automanage/mgmt/2020-06-30-preview/automanage/accounts.go index 0252b600ce8a..df575980eaaf 100644 --- a/services/preview/automanage/mgmt/2020-06-30-preview/automanage/accounts.go +++ b/services/preview/automanage/mgmt/2020-06-30-preview/automanage/accounts.go @@ -52,8 +52,7 @@ func (client AccountsClient) CreateOrUpdate(ctx context.Context, accountName str Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}, {TargetValue: resourceGroupName, Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, - {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}}); err != nil { + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { return result, validation.NewError("automanage.AccountsClient", "CreateOrUpdate", err.Error()) } @@ -138,8 +137,7 @@ func (client AccountsClient) Delete(ctx context.Context, resourceGroupName strin if err := validation.Validate([]validation.Validation{ {TargetValue: resourceGroupName, Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, - {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}}}, {TargetValue: client.SubscriptionID, Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { return result, validation.NewError("automanage.AccountsClient", "Delete", err.Error()) @@ -225,8 +223,7 @@ func (client AccountsClient) Get(ctx context.Context, accountName string, resour Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}, {TargetValue: resourceGroupName, Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, - {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}}); err != nil { + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { return result, validation.NewError("automanage.AccountsClient", "Get", err.Error()) } @@ -310,8 +307,7 @@ func (client AccountsClient) ListByResourceGroup(ctx context.Context, resourceGr Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}, {TargetValue: resourceGroupName, Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, - {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}}); err != nil { + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { return result, validation.NewError("automanage.AccountsClient", "ListByResourceGroup", err.Error()) } @@ -473,8 +469,7 @@ func (client AccountsClient) Update(ctx context.Context, accountName string, res Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}, {TargetValue: resourceGroupName, Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, - {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}}); err != nil { + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { return result, validation.NewError("automanage.AccountsClient", "Update", err.Error()) } diff --git a/services/preview/automanage/mgmt/2020-06-30-preview/automanage/configurationprofileassignments.go b/services/preview/automanage/mgmt/2020-06-30-preview/automanage/configurationprofileassignments.go index 2ffabf5175a9..7edc0175975a 100644 --- a/services/preview/automanage/mgmt/2020-06-30-preview/automanage/configurationprofileassignments.go +++ b/services/preview/automanage/mgmt/2020-06-30-preview/automanage/configurationprofileassignments.go @@ -55,8 +55,7 @@ func (client ConfigurationProfileAssignmentsClient) CreateOrUpdate(ctx context.C Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}, {TargetValue: resourceGroupName, Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, - {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}}); err != nil { + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { return result, validation.NewError("automanage.ConfigurationProfileAssignmentsClient", "CreateOrUpdate", err.Error()) } @@ -146,8 +145,7 @@ func (client ConfigurationProfileAssignmentsClient) Delete(ctx context.Context, if err := validation.Validate([]validation.Validation{ {TargetValue: resourceGroupName, Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, - {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}}}, {TargetValue: client.SubscriptionID, Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { return result, validation.NewError("automanage.ConfigurationProfileAssignmentsClient", "Delete", err.Error()) @@ -233,8 +231,7 @@ func (client ConfigurationProfileAssignmentsClient) Get(ctx context.Context, res if err := validation.Validate([]validation.Validation{ {TargetValue: resourceGroupName, Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, - {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}}}, {TargetValue: client.SubscriptionID, Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { return result, validation.NewError("automanage.ConfigurationProfileAssignmentsClient", "Get", err.Error()) @@ -319,8 +316,7 @@ func (client ConfigurationProfileAssignmentsClient) List(ctx context.Context, re if err := validation.Validate([]validation.Validation{ {TargetValue: resourceGroupName, Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, - {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}}}, {TargetValue: client.SubscriptionID, Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { return result, validation.NewError("automanage.ConfigurationProfileAssignmentsClient", "List", err.Error()) diff --git a/services/preview/automanage/mgmt/2020-06-30-preview/automanage/configurationprofilepreferences.go b/services/preview/automanage/mgmt/2020-06-30-preview/automanage/configurationprofilepreferences.go index f238bb5b0676..3338906a7231 100644 --- a/services/preview/automanage/mgmt/2020-06-30-preview/automanage/configurationprofilepreferences.go +++ b/services/preview/automanage/mgmt/2020-06-30-preview/automanage/configurationprofilepreferences.go @@ -53,8 +53,7 @@ func (client ConfigurationProfilePreferencesClient) CreateOrUpdate(ctx context.C Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}, {TargetValue: resourceGroupName, Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, - {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}}); err != nil { + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { return result, validation.NewError("automanage.ConfigurationProfilePreferencesClient", "CreateOrUpdate", err.Error()) } @@ -139,8 +138,7 @@ func (client ConfigurationProfilePreferencesClient) Delete(ctx context.Context, if err := validation.Validate([]validation.Validation{ {TargetValue: resourceGroupName, Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, - {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}}}, {TargetValue: client.SubscriptionID, Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { return result, validation.NewError("automanage.ConfigurationProfilePreferencesClient", "Delete", err.Error()) @@ -226,8 +224,7 @@ func (client ConfigurationProfilePreferencesClient) Get(ctx context.Context, con Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}, {TargetValue: resourceGroupName, Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, - {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}}); err != nil { + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { return result, validation.NewError("automanage.ConfigurationProfilePreferencesClient", "Get", err.Error()) } @@ -311,8 +308,7 @@ func (client ConfigurationProfilePreferencesClient) ListByResourceGroup(ctx cont Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}, {TargetValue: resourceGroupName, Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, - {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}}); err != nil { + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { return result, validation.NewError("automanage.ConfigurationProfilePreferencesClient", "ListByResourceGroup", err.Error()) } @@ -474,8 +470,7 @@ func (client ConfigurationProfilePreferencesClient) Update(ctx context.Context, Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}, {TargetValue: resourceGroupName, Constraints: []validation.Constraint{{Target: "resourceGroupName", Name: validation.MaxLength, Rule: 90, Chain: nil}, - {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}, - {Target: "resourceGroupName", Name: validation.Pattern, Rule: `^[-\w\._\(\)]+$`, Chain: nil}}}}); err != nil { + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { return result, validation.NewError("automanage.ConfigurationProfilePreferencesClient", "Update", err.Error()) } diff --git a/services/preview/automanage/mgmt/2020-06-30-preview/automanage/models.go b/services/preview/automanage/mgmt/2020-06-30-preview/automanage/models.go index ab407e4bbb3a..9b45e5f2037a 100644 --- a/services/preview/automanage/mgmt/2020-06-30-preview/automanage/models.go +++ b/services/preview/automanage/mgmt/2020-06-30-preview/automanage/models.go @@ -477,8 +477,8 @@ type OperationProperties struct { StatusCode *string `json:"statusCode,omitempty"` } -// ProxyResource the resource model definition for an Azure Resource Manager proxy resource. It will have -// everything other than required location and tags +// ProxyResource the resource model definition for a Azure Resource Manager proxy resource. It will not +// have tags and a location type ProxyResource struct { // ID - READ-ONLY; Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} ID *string `json:"id,omitempty"` @@ -511,6 +511,7 @@ func (r Resource) MarshalJSON() ([]byte, error) { } // TrackedResource the resource model definition for an Azure Resource Manager tracked top level resource +// which has 'tags' and a 'location' type TrackedResource struct { // Tags - Resource tags. Tags map[string]*string `json:"tags"`