From 51f3722145310094b4cc14ade9a953ed04f58224 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Fri, 29 Oct 2021 01:11:30 +0000 Subject: [PATCH] CodeGen from PR 16153 in Azure/azure-rest-api-specs Dev maps microsoft.maps 2021 12 01 preview (#16153) * Adds base for updating Microsoft.Maps from version preview/2021-07-01-preview to version 2021-12-01-preview * Updates readme * Updates API version in new specs and examples * CORS and AccountSas * fix examples * fixing * fix example * fixing example * fix convention and systemdata * creator examples * fix by rule supress * content updates * fixes from specs pipeline --- .../mgmt/2017-01-01-preview/maps/CHANGELOG.md | 2 - .../maps/mgmt/2017-01-01/maps/CHANGELOG.md | 2 + .../maps/_meta.json | 2 +- .../maps/accounts.go | 2 +- .../maps/client.go | 2 +- .../maps/enums.go | 0 .../maps/mapsapi/interfaces.go | 2 +- .../maps/models.go | 2 +- .../maps/version.go | 0 .../maps/mgmt/2018-05-01/maps/CHANGELOG.md | 2 +- services/maps/mgmt/2018-05-01/maps/_meta.json | 2 +- .../maps/mgmt/2018-05-01/maps/accounts.go | 2 +- services/maps/mgmt/2018-05-01/maps/client.go | 2 +- .../maps/mgmt/2021-02-01/maps/CHANGELOG.md | 20 ++- services/maps/mgmt/2021-02-01/maps/_meta.json | 2 +- .../maps/mgmt/2021-02-01/maps/accounts.go | 21 +-- .../maps/mgmt/2021-02-01/maps/creators.go | 15 +-- services/maps/mgmt/2021-02-01/maps/maps.go | 120 ++++++++++++++++++ .../2021-02-01/maps/mapsapi/interfaces.go | 2 + services/maps/mgmt/2021-02-01/maps/models.go | 8 ++ .../mgmt/2020-02-01-preview/maps/CHANGELOG.md | 2 +- .../mgmt/2020-02-01-preview/maps/_meta.json | 2 +- .../mgmt/2020-02-01-preview/maps/accounts.go | 23 ++-- .../mgmt/2020-02-01-preview/maps/client.go | 2 +- .../mgmt/2020-02-01-preview/maps/creators.go | 17 +-- .../maps/mgmt/2020-02-01-preview/maps/maps.go | 2 +- .../mgmt/2020-02-01-preview/maps/models.go | 7 +- .../2020-02-01-preview/maps/privateatlases.go | 31 ++--- 28 files changed, 208 insertions(+), 88 deletions(-) delete mode 100644 services/maps/mgmt/2017-01-01-preview/maps/CHANGELOG.md create mode 100644 services/maps/mgmt/2017-01-01/maps/CHANGELOG.md rename services/maps/mgmt/{2017-01-01-preview => 2017-01-01}/maps/_meta.json (92%) rename services/maps/mgmt/{2017-01-01-preview => 2017-01-01}/maps/accounts.go (99%) rename services/maps/mgmt/{2017-01-01-preview => 2017-01-01}/maps/client.go (98%) rename services/maps/mgmt/{2017-01-01-preview => 2017-01-01}/maps/enums.go (100%) rename services/maps/mgmt/{2017-01-01-preview => 2017-01-01}/maps/mapsapi/interfaces.go (99%) rename services/maps/mgmt/{2017-01-01-preview => 2017-01-01}/maps/models.go (99%) rename services/maps/mgmt/{2017-01-01-preview => 2017-01-01}/maps/version.go (100%) diff --git a/services/maps/mgmt/2017-01-01-preview/maps/CHANGELOG.md b/services/maps/mgmt/2017-01-01-preview/maps/CHANGELOG.md deleted file mode 100644 index 52911e4cc5e4..000000000000 --- a/services/maps/mgmt/2017-01-01-preview/maps/CHANGELOG.md +++ /dev/null @@ -1,2 +0,0 @@ -# Change History - diff --git a/services/maps/mgmt/2017-01-01/maps/CHANGELOG.md b/services/maps/mgmt/2017-01-01/maps/CHANGELOG.md new file mode 100644 index 000000000000..a1ecf841edb0 --- /dev/null +++ b/services/maps/mgmt/2017-01-01/maps/CHANGELOG.md @@ -0,0 +1,2 @@ +# Unreleased + diff --git a/services/maps/mgmt/2017-01-01-preview/maps/_meta.json b/services/maps/mgmt/2017-01-01/maps/_meta.json similarity index 92% rename from services/maps/mgmt/2017-01-01-preview/maps/_meta.json rename to services/maps/mgmt/2017-01-01/maps/_meta.json index 556a519174a1..25ddead2990a 100644 --- a/services/maps/mgmt/2017-01-01-preview/maps/_meta.json +++ b/services/maps/mgmt/2017-01-01/maps/_meta.json @@ -1,5 +1,5 @@ { - "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", + "commit": "50d599c9caa01a87f638d6a522ef0c45df16faf5", "readme": "/_/azure-rest-api-specs/specification/maps/resource-manager/readme.md", "tag": "package-2017-01", "use": "@microsoft.azure/autorest.go@2.1.187", diff --git a/services/maps/mgmt/2017-01-01-preview/maps/accounts.go b/services/maps/mgmt/2017-01-01/maps/accounts.go similarity index 99% rename from services/maps/mgmt/2017-01-01-preview/maps/accounts.go rename to services/maps/mgmt/2017-01-01/maps/accounts.go index 676b1eb18f0b..c5a6e4f4df83 100644 --- a/services/maps/mgmt/2017-01-01-preview/maps/accounts.go +++ b/services/maps/mgmt/2017-01-01/maps/accounts.go @@ -15,7 +15,7 @@ import ( "net/http" ) -// AccountsClient is the resource Provider +// AccountsClient is the azure Maps type AccountsClient struct { BaseClient } diff --git a/services/maps/mgmt/2017-01-01-preview/maps/client.go b/services/maps/mgmt/2017-01-01/maps/client.go similarity index 98% rename from services/maps/mgmt/2017-01-01-preview/maps/client.go rename to services/maps/mgmt/2017-01-01/maps/client.go index bf04574ad045..d8ddf780e4cd 100644 --- a/services/maps/mgmt/2017-01-01-preview/maps/client.go +++ b/services/maps/mgmt/2017-01-01/maps/client.go @@ -1,6 +1,6 @@ // Package maps implements the Azure ARM Maps service API version 2017-01-01-preview. // -// Resource Provider +// Azure Maps package maps // Copyright (c) Microsoft Corporation. All rights reserved. diff --git a/services/maps/mgmt/2017-01-01-preview/maps/enums.go b/services/maps/mgmt/2017-01-01/maps/enums.go similarity index 100% rename from services/maps/mgmt/2017-01-01-preview/maps/enums.go rename to services/maps/mgmt/2017-01-01/maps/enums.go diff --git a/services/maps/mgmt/2017-01-01-preview/maps/mapsapi/interfaces.go b/services/maps/mgmt/2017-01-01/maps/mapsapi/interfaces.go similarity index 99% rename from services/maps/mgmt/2017-01-01-preview/maps/mapsapi/interfaces.go rename to services/maps/mgmt/2017-01-01/maps/mapsapi/interfaces.go index 92933f9d1aa6..c505dfa94569 100644 --- a/services/maps/mgmt/2017-01-01-preview/maps/mapsapi/interfaces.go +++ b/services/maps/mgmt/2017-01-01/maps/mapsapi/interfaces.go @@ -8,7 +8,7 @@ package mapsapi import ( "context" - "github.com/Azure/azure-sdk-for-go/services/maps/mgmt/2017-01-01-preview/maps" + "github.com/Azure/azure-sdk-for-go/services/maps/mgmt/2017-01-01/maps" "github.com/Azure/go-autorest/autorest" ) diff --git a/services/maps/mgmt/2017-01-01-preview/maps/models.go b/services/maps/mgmt/2017-01-01/maps/models.go similarity index 99% rename from services/maps/mgmt/2017-01-01-preview/maps/models.go rename to services/maps/mgmt/2017-01-01/maps/models.go index b28c84f900e3..48f3cbdc9b10 100644 --- a/services/maps/mgmt/2017-01-01-preview/maps/models.go +++ b/services/maps/mgmt/2017-01-01/maps/models.go @@ -12,7 +12,7 @@ import ( ) // The package's fully qualified name. -const fqdn = "github.com/Azure/azure-sdk-for-go/services/maps/mgmt/2017-01-01-preview/maps" +const fqdn = "github.com/Azure/azure-sdk-for-go/services/maps/mgmt/2017-01-01/maps" // Account an Azure resource which represents access to a suite of Maps REST APIs. type Account struct { diff --git a/services/maps/mgmt/2017-01-01-preview/maps/version.go b/services/maps/mgmt/2017-01-01/maps/version.go similarity index 100% rename from services/maps/mgmt/2017-01-01-preview/maps/version.go rename to services/maps/mgmt/2017-01-01/maps/version.go diff --git a/services/maps/mgmt/2018-05-01/maps/CHANGELOG.md b/services/maps/mgmt/2018-05-01/maps/CHANGELOG.md index 52911e4cc5e4..a1ecf841edb0 100644 --- a/services/maps/mgmt/2018-05-01/maps/CHANGELOG.md +++ b/services/maps/mgmt/2018-05-01/maps/CHANGELOG.md @@ -1,2 +1,2 @@ -# Change History +# Unreleased diff --git a/services/maps/mgmt/2018-05-01/maps/_meta.json b/services/maps/mgmt/2018-05-01/maps/_meta.json index b50df605fd06..a5606b0e8b3b 100644 --- a/services/maps/mgmt/2018-05-01/maps/_meta.json +++ b/services/maps/mgmt/2018-05-01/maps/_meta.json @@ -1,5 +1,5 @@ { - "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", + "commit": "50d599c9caa01a87f638d6a522ef0c45df16faf5", "readme": "/_/azure-rest-api-specs/specification/maps/resource-manager/readme.md", "tag": "package-2018-05", "use": "@microsoft.azure/autorest.go@2.1.187", diff --git a/services/maps/mgmt/2018-05-01/maps/accounts.go b/services/maps/mgmt/2018-05-01/maps/accounts.go index 0d1429b27a27..524644ff8ebc 100644 --- a/services/maps/mgmt/2018-05-01/maps/accounts.go +++ b/services/maps/mgmt/2018-05-01/maps/accounts.go @@ -15,7 +15,7 @@ import ( "net/http" ) -// AccountsClient is the resource Provider +// AccountsClient is the azure Maps type AccountsClient struct { BaseClient } diff --git a/services/maps/mgmt/2018-05-01/maps/client.go b/services/maps/mgmt/2018-05-01/maps/client.go index 4ced11fd948b..455a866f0453 100644 --- a/services/maps/mgmt/2018-05-01/maps/client.go +++ b/services/maps/mgmt/2018-05-01/maps/client.go @@ -1,6 +1,6 @@ // Package maps implements the Azure ARM Maps service API version 2018-05-01. // -// Resource Provider +// Azure Maps package maps // Copyright (c) Microsoft Corporation. All rights reserved. diff --git a/services/maps/mgmt/2021-02-01/maps/CHANGELOG.md b/services/maps/mgmt/2021-02-01/maps/CHANGELOG.md index 52911e4cc5e4..e464cb90c3d7 100644 --- a/services/maps/mgmt/2021-02-01/maps/CHANGELOG.md +++ b/services/maps/mgmt/2021-02-01/maps/CHANGELOG.md @@ -1,2 +1,20 @@ -# Change History +# Unreleased +## Additive Changes + +### New Funcs + +1. Client.ListSubscriptionOperations(context.Context) (OperationsPage, error) +1. Client.ListSubscriptionOperationsComplete(context.Context) (OperationsIterator, error) +1. Client.ListSubscriptionOperationsPreparer(context.Context) (*http.Request, error) +1. Client.ListSubscriptionOperationsResponder(*http.Response) (Operations, error) +1. Client.ListSubscriptionOperationsSender(*http.Request) (*http.Response, error) + +### Struct Changes + +#### New Struct Fields + +1. Dimension.InternalMetricName +1. Dimension.InternalName +1. Dimension.SourceMdmNamespace +1. Dimension.ToBeExportedToShoebox diff --git a/services/maps/mgmt/2021-02-01/maps/_meta.json b/services/maps/mgmt/2021-02-01/maps/_meta.json index 4c2a7ef4a2b6..c787b7058e6d 100644 --- a/services/maps/mgmt/2021-02-01/maps/_meta.json +++ b/services/maps/mgmt/2021-02-01/maps/_meta.json @@ -1,5 +1,5 @@ { - "commit": "c2ea3a3ccd14293b4bd1d17e684ef9129f0dc604", + "commit": "50d599c9caa01a87f638d6a522ef0c45df16faf5", "readme": "/_/azure-rest-api-specs/specification/maps/resource-manager/readme.md", "tag": "package-2021-02", "use": "@microsoft.azure/autorest.go@2.1.187", diff --git a/services/maps/mgmt/2021-02-01/maps/accounts.go b/services/maps/mgmt/2021-02-01/maps/accounts.go index ddf78f1bf027..877bd885bf76 100644 --- a/services/maps/mgmt/2021-02-01/maps/accounts.go +++ b/services/maps/mgmt/2021-02-01/maps/accounts.go @@ -53,8 +53,7 @@ func (client AccountsClient) CreateOrUpdate(ctx context.Context, resourceGroupNa 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}}}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}}}, {TargetValue: mapsAccount, Constraints: []validation.Constraint{{Target: "mapsAccount.Sku", Name: validation.Null, Rule: true, Chain: nil}}}}); err != nil { return result, validation.NewError("maps.AccountsClient", "CreateOrUpdate", err.Error()) @@ -144,8 +143,7 @@ func (client AccountsClient) Delete(ctx context.Context, resourceGroupName strin 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("maps.AccountsClient", "Delete", err.Error()) } @@ -229,8 +227,7 @@ func (client AccountsClient) Get(ctx context.Context, resourceGroupName string, 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("maps.AccountsClient", "Get", err.Error()) } @@ -314,8 +311,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("maps.AccountsClient", "ListByResourceGroup", err.Error()) } @@ -561,8 +557,7 @@ func (client AccountsClient) ListKeys(ctx context.Context, resourceGroupName 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("maps.AccountsClient", "ListKeys", err.Error()) } @@ -649,8 +644,7 @@ func (client AccountsClient) RegenerateKeys(ctx context.Context, resourceGroupNa 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("maps.AccountsClient", "RegenerateKeys", err.Error()) } @@ -739,8 +733,7 @@ func (client AccountsClient) Update(ctx context.Context, resourceGroupName strin 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("maps.AccountsClient", "Update", err.Error()) } diff --git a/services/maps/mgmt/2021-02-01/maps/creators.go b/services/maps/mgmt/2021-02-01/maps/creators.go index 77a7d495dd26..b7941305ed92 100644 --- a/services/maps/mgmt/2021-02-01/maps/creators.go +++ b/services/maps/mgmt/2021-02-01/maps/creators.go @@ -54,8 +54,7 @@ func (client CreatorsClient) CreateOrUpdate(ctx context.Context, resourceGroupNa 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}}}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}}}, {TargetValue: creatorResource, Constraints: []validation.Constraint{{Target: "creatorResource.Properties", Name: validation.Null, Rule: true, Chain: []validation.Constraint{{Target: "creatorResource.Properties.StorageUnits", Name: validation.Null, Rule: true, @@ -151,8 +150,7 @@ func (client CreatorsClient) Delete(ctx context.Context, resourceGroupName strin 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("maps.CreatorsClient", "Delete", err.Error()) } @@ -238,8 +236,7 @@ func (client CreatorsClient) Get(ctx context.Context, resourceGroupName string, 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("maps.CreatorsClient", "Get", err.Error()) } @@ -325,8 +322,7 @@ func (client CreatorsClient) ListByAccount(ctx context.Context, resourceGroupNam 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("maps.CreatorsClient", "ListByAccount", err.Error()) } @@ -456,8 +452,7 @@ func (client CreatorsClient) Update(ctx context.Context, resourceGroupName strin 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("maps.CreatorsClient", "Update", err.Error()) } diff --git a/services/maps/mgmt/2021-02-01/maps/maps.go b/services/maps/mgmt/2021-02-01/maps/maps.go index b21469c5c483..2f8b53e23100 100644 --- a/services/maps/mgmt/2021-02-01/maps/maps.go +++ b/services/maps/mgmt/2021-02-01/maps/maps.go @@ -10,6 +10,7 @@ import ( "context" "github.com/Azure/go-autorest/autorest" "github.com/Azure/go-autorest/autorest/azure" + "github.com/Azure/go-autorest/autorest/validation" "github.com/Azure/go-autorest/tracing" "net/http" ) @@ -138,3 +139,122 @@ func (client Client) ListOperationsComplete(ctx context.Context) (result Operati result.page, err = client.ListOperations(ctx) return } + +// ListSubscriptionOperations list operations available for the Maps Resource Provider +func (client Client) ListSubscriptionOperations(ctx context.Context) (result OperationsPage, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/Client.ListSubscriptionOperations") + defer func() { + sc := -1 + if result.o.Response.Response != nil { + sc = result.o.Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + if err := validation.Validate([]validation.Validation{ + {TargetValue: client.SubscriptionID, + Constraints: []validation.Constraint{{Target: "client.SubscriptionID", Name: validation.MinLength, Rule: 1, Chain: nil}}}}); err != nil { + return result, validation.NewError("maps.Client", "ListSubscriptionOperations", err.Error()) + } + + result.fn = client.listSubscriptionOperationsNextResults + req, err := client.ListSubscriptionOperationsPreparer(ctx) + if err != nil { + err = autorest.NewErrorWithError(err, "maps.Client", "ListSubscriptionOperations", nil, "Failure preparing request") + return + } + + resp, err := client.ListSubscriptionOperationsSender(req) + if err != nil { + result.o.Response = autorest.Response{Response: resp} + err = autorest.NewErrorWithError(err, "maps.Client", "ListSubscriptionOperations", resp, "Failure sending request") + return + } + + result.o, err = client.ListSubscriptionOperationsResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "maps.Client", "ListSubscriptionOperations", resp, "Failure responding to request") + return + } + if result.o.hasNextLink() && result.o.IsEmpty() { + err = result.NextWithContext(ctx) + return + } + + return +} + +// ListSubscriptionOperationsPreparer prepares the ListSubscriptionOperations request. +func (client Client) ListSubscriptionOperationsPreparer(ctx context.Context) (*http.Request, error) { + pathParameters := map[string]interface{}{ + "subscriptionId": autorest.Encode("path", client.SubscriptionID), + } + + const APIVersion = "2021-02-01" + queryParameters := map[string]interface{}{ + "api-version": APIVersion, + } + + preparer := autorest.CreatePreparer( + autorest.AsGet(), + autorest.WithBaseURL(client.BaseURI), + autorest.WithPathParameters("/subscriptions/{subscriptionId}/providers/Microsoft.Maps/operations", pathParameters), + autorest.WithQueryParameters(queryParameters)) + return preparer.Prepare((&http.Request{}).WithContext(ctx)) +} + +// ListSubscriptionOperationsSender sends the ListSubscriptionOperations request. The method will close the +// http.Response Body if it receives an error. +func (client Client) ListSubscriptionOperationsSender(req *http.Request) (*http.Response, error) { + return client.Send(req, azure.DoRetryWithRegistration(client.Client)) +} + +// ListSubscriptionOperationsResponder handles the response to the ListSubscriptionOperations request. The method always +// closes the http.Response Body. +func (client Client) ListSubscriptionOperationsResponder(resp *http.Response) (result Operations, err error) { + err = autorest.Respond( + resp, + azure.WithErrorUnlessStatusCode(http.StatusOK), + autorest.ByUnmarshallingJSON(&result), + autorest.ByClosing()) + result.Response = autorest.Response{Response: resp} + return +} + +// listSubscriptionOperationsNextResults retrieves the next set of results, if any. +func (client Client) listSubscriptionOperationsNextResults(ctx context.Context, lastResults Operations) (result Operations, err error) { + req, err := lastResults.operationsPreparer(ctx) + if err != nil { + return result, autorest.NewErrorWithError(err, "maps.Client", "listSubscriptionOperationsNextResults", nil, "Failure preparing next results request") + } + if req == nil { + return + } + resp, err := client.ListSubscriptionOperationsSender(req) + if err != nil { + result.Response = autorest.Response{Response: resp} + return result, autorest.NewErrorWithError(err, "maps.Client", "listSubscriptionOperationsNextResults", resp, "Failure sending next results request") + } + result, err = client.ListSubscriptionOperationsResponder(resp) + if err != nil { + err = autorest.NewErrorWithError(err, "maps.Client", "listSubscriptionOperationsNextResults", resp, "Failure responding to next results request") + } + return +} + +// ListSubscriptionOperationsComplete enumerates all values, automatically crossing page boundaries as required. +func (client Client) ListSubscriptionOperationsComplete(ctx context.Context) (result OperationsIterator, err error) { + if tracing.IsEnabled() { + ctx = tracing.StartSpan(ctx, fqdn+"/Client.ListSubscriptionOperations") + defer func() { + sc := -1 + if result.Response().Response.Response != nil { + sc = result.page.Response().Response.Response.StatusCode + } + tracing.EndSpan(ctx, sc, err) + }() + } + result.page, err = client.ListSubscriptionOperations(ctx) + return +} diff --git a/services/maps/mgmt/2021-02-01/maps/mapsapi/interfaces.go b/services/maps/mgmt/2021-02-01/maps/mapsapi/interfaces.go index 642fb6b1e48e..bef775296791 100644 --- a/services/maps/mgmt/2021-02-01/maps/mapsapi/interfaces.go +++ b/services/maps/mgmt/2021-02-01/maps/mapsapi/interfaces.go @@ -32,6 +32,8 @@ var _ AccountsClientAPI = (*maps.AccountsClient)(nil) type ClientAPI interface { ListOperations(ctx context.Context) (result maps.OperationsPage, err error) ListOperationsComplete(ctx context.Context) (result maps.OperationsIterator, err error) + ListSubscriptionOperations(ctx context.Context) (result maps.OperationsPage, err error) + ListSubscriptionOperationsComplete(ctx context.Context) (result maps.OperationsIterator, err error) } var _ ClientAPI = (*maps.Client)(nil) diff --git a/services/maps/mgmt/2021-02-01/maps/models.go b/services/maps/mgmt/2021-02-01/maps/models.go index 4d46e3d35947..d84e8722f499 100644 --- a/services/maps/mgmt/2021-02-01/maps/models.go +++ b/services/maps/mgmt/2021-02-01/maps/models.go @@ -648,6 +648,14 @@ type Dimension struct { Name *string `json:"name,omitempty"` // DisplayName - Display name of dimension. DisplayName *string `json:"displayName,omitempty"` + // InternalName - Internal name of the dimension. + InternalName *string `json:"internalName,omitempty"` + // InternalMetricName - Internal metric name of the dimension. + InternalMetricName *string `json:"internalMetricName,omitempty"` + // SourceMdmNamespace - Source Mdm Namespace of the dimension. + SourceMdmNamespace *string `json:"sourceMdmNamespace,omitempty"` + // ToBeExportedToShoebox - Flag to indicate exporting to Azure Monitor. + ToBeExportedToShoebox *bool `json:"toBeExportedToShoebox,omitempty"` } // ErrorAdditionalInfo the resource management error additional info. diff --git a/services/preview/maps/mgmt/2020-02-01-preview/maps/CHANGELOG.md b/services/preview/maps/mgmt/2020-02-01-preview/maps/CHANGELOG.md index 52911e4cc5e4..a1ecf841edb0 100644 --- a/services/preview/maps/mgmt/2020-02-01-preview/maps/CHANGELOG.md +++ b/services/preview/maps/mgmt/2020-02-01-preview/maps/CHANGELOG.md @@ -1,2 +1,2 @@ -# Change History +# Unreleased diff --git a/services/preview/maps/mgmt/2020-02-01-preview/maps/_meta.json b/services/preview/maps/mgmt/2020-02-01-preview/maps/_meta.json index 3f00c58cb002..ba33f4f15ad8 100644 --- a/services/preview/maps/mgmt/2020-02-01-preview/maps/_meta.json +++ b/services/preview/maps/mgmt/2020-02-01-preview/maps/_meta.json @@ -1,5 +1,5 @@ { - "commit": "3c764635e7d442b3e74caf593029fcd440b3ef82", + "commit": "50d599c9caa01a87f638d6a522ef0c45df16faf5", "readme": "/_/azure-rest-api-specs/specification/maps/resource-manager/readme.md", "tag": "package-preview-2020-02", "use": "@microsoft.azure/autorest.go@2.1.187", diff --git a/services/preview/maps/mgmt/2020-02-01-preview/maps/accounts.go b/services/preview/maps/mgmt/2020-02-01-preview/maps/accounts.go index 4596b5c334b9..76f1f7efb9e6 100644 --- a/services/preview/maps/mgmt/2020-02-01-preview/maps/accounts.go +++ b/services/preview/maps/mgmt/2020-02-01-preview/maps/accounts.go @@ -15,7 +15,7 @@ import ( "net/http" ) -// AccountsClient is the resource Provider +// AccountsClient is the azure Maps type AccountsClient struct { BaseClient } @@ -53,8 +53,7 @@ func (client AccountsClient) CreateOrUpdate(ctx context.Context, resourceGroupNa 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}}}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}}}, {TargetValue: mapsAccountCreateParameters, Constraints: []validation.Constraint{{Target: "mapsAccountCreateParameters.Location", Name: validation.Null, Rule: true, Chain: nil}, {Target: "mapsAccountCreateParameters.Sku", Name: validation.Null, Rule: true, @@ -145,8 +144,7 @@ func (client AccountsClient) Delete(ctx context.Context, resourceGroupName strin 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("maps.AccountsClient", "Delete", err.Error()) } @@ -230,8 +228,7 @@ func (client AccountsClient) Get(ctx context.Context, resourceGroupName string, 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("maps.AccountsClient", "Get", err.Error()) } @@ -315,8 +312,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("maps.AccountsClient", "ListByResourceGroup", err.Error()) } @@ -478,8 +474,7 @@ func (client AccountsClient) ListKeys(ctx context.Context, resourceGroupName 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("maps.AccountsClient", "ListKeys", err.Error()) } @@ -566,8 +561,7 @@ func (client AccountsClient) RegenerateKeys(ctx context.Context, resourceGroupNa 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("maps.AccountsClient", "RegenerateKeys", err.Error()) } @@ -655,8 +649,7 @@ func (client AccountsClient) Update(ctx context.Context, resourceGroupName strin 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("maps.AccountsClient", "Update", err.Error()) } diff --git a/services/preview/maps/mgmt/2020-02-01-preview/maps/client.go b/services/preview/maps/mgmt/2020-02-01-preview/maps/client.go index d25f3f8ceaa8..402d743037a7 100644 --- a/services/preview/maps/mgmt/2020-02-01-preview/maps/client.go +++ b/services/preview/maps/mgmt/2020-02-01-preview/maps/client.go @@ -1,6 +1,6 @@ // Package maps implements the Azure ARM Maps service API version 2020-02-01-preview. // -// Resource Provider +// Azure Maps package maps // Copyright (c) Microsoft Corporation. All rights reserved. diff --git a/services/preview/maps/mgmt/2020-02-01-preview/maps/creators.go b/services/preview/maps/mgmt/2020-02-01-preview/maps/creators.go index 2c324abf7a42..472e3f2bc920 100644 --- a/services/preview/maps/mgmt/2020-02-01-preview/maps/creators.go +++ b/services/preview/maps/mgmt/2020-02-01-preview/maps/creators.go @@ -15,7 +15,7 @@ import ( "net/http" ) -// CreatorsClient is the resource Provider +// CreatorsClient is the azure Maps type CreatorsClient struct { BaseClient } @@ -54,8 +54,7 @@ func (client CreatorsClient) CreateOrUpdate(ctx context.Context, resourceGroupNa 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}}}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}}}, {TargetValue: creatorCreateParameters, Constraints: []validation.Constraint{{Target: "creatorCreateParameters.Location", Name: validation.Null, Rule: true, Chain: nil}}}}); err != nil { return result, validation.NewError("maps.CreatorsClient", "CreateOrUpdate", err.Error()) @@ -146,8 +145,7 @@ func (client CreatorsClient) Delete(ctx context.Context, resourceGroupName strin 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("maps.CreatorsClient", "Delete", err.Error()) } @@ -233,8 +231,7 @@ func (client CreatorsClient) Get(ctx context.Context, resourceGroupName string, 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("maps.CreatorsClient", "Get", err.Error()) } @@ -320,8 +317,7 @@ func (client CreatorsClient) ListByAccount(ctx context.Context, resourceGroupNam 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("maps.CreatorsClient", "ListByAccount", err.Error()) } @@ -409,8 +405,7 @@ func (client CreatorsClient) Update(ctx context.Context, resourceGroupName strin 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("maps.CreatorsClient", "Update", err.Error()) } diff --git a/services/preview/maps/mgmt/2020-02-01-preview/maps/maps.go b/services/preview/maps/mgmt/2020-02-01-preview/maps/maps.go index 5d3701d44716..5894a7e4b706 100644 --- a/services/preview/maps/mgmt/2020-02-01-preview/maps/maps.go +++ b/services/preview/maps/mgmt/2020-02-01-preview/maps/maps.go @@ -14,7 +14,7 @@ import ( "net/http" ) -// Client is the resource Provider +// Client is the azure Maps type Client struct { BaseClient } diff --git a/services/preview/maps/mgmt/2020-02-01-preview/maps/models.go b/services/preview/maps/mgmt/2020-02-01-preview/maps/models.go index 3ef9465117d8..b56d72f99c65 100644 --- a/services/preview/maps/mgmt/2020-02-01-preview/maps/models.go +++ b/services/preview/maps/mgmt/2020-02-01-preview/maps/models.go @@ -419,8 +419,8 @@ func (paup PrivateAtlasUpdateParameters) MarshalJSON() ([]byte, error) { return json.Marshal(objectMap) } -// 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"` @@ -481,11 +481,12 @@ type SystemData struct { LastModifiedBy *string `json:"lastModifiedBy,omitempty"` // LastModifiedByType - The type of identity that last modified the resource. Possible values include: 'User', 'Application', 'ManagedIdentity', 'Key' LastModifiedByType CreatedByType `json:"lastModifiedByType,omitempty"` - // LastModifiedAt - The type of identity that last modified the resource. + // LastModifiedAt - The timestamp of resource last modification (UTC) LastModifiedAt *date.Time `json:"lastModifiedAt,omitempty"` } // 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"` diff --git a/services/preview/maps/mgmt/2020-02-01-preview/maps/privateatlases.go b/services/preview/maps/mgmt/2020-02-01-preview/maps/privateatlases.go index b43ccdff3179..500a210797e5 100644 --- a/services/preview/maps/mgmt/2020-02-01-preview/maps/privateatlases.go +++ b/services/preview/maps/mgmt/2020-02-01-preview/maps/privateatlases.go @@ -15,7 +15,7 @@ import ( "net/http" ) -// PrivateAtlasesClient is the resource Provider +// PrivateAtlasesClient is the azure Maps type PrivateAtlasesClient struct { BaseClient } @@ -31,8 +31,8 @@ func NewPrivateAtlasesClientWithBaseURI(baseURI string, subscriptionID string) P return PrivateAtlasesClient{NewWithBaseURI(baseURI, subscriptionID)} } -// CreateOrUpdate create or update a Private Atlas resource. Private Atlas resource will enable the usage of Azure -// resources to build a custom set of mapping data. It requires an account to exist before it can be created. +// CreateOrUpdate [Deprecated] Create or update a Private Atlas resource. Private Atlas resource will enable the usage +// of Azure resources to build a custom set of mapping data. It requires an account to exist before it can be created. // Parameters: // resourceGroupName - the name of the resource group. The name is case insensitive. // accountName - the name of the Maps Account. @@ -54,8 +54,7 @@ func (client PrivateAtlasesClient) CreateOrUpdate(ctx context.Context, resourceG 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}}}, + {Target: "resourceGroupName", Name: validation.MinLength, Rule: 1, Chain: nil}}}, {TargetValue: privateAtlasCreateParameters, Constraints: []validation.Constraint{{Target: "privateAtlasCreateParameters.Location", Name: validation.Null, Rule: true, Chain: nil}}}}); err != nil { return result, validation.NewError("maps.PrivateAtlasesClient", "CreateOrUpdate", err.Error()) @@ -125,7 +124,7 @@ func (client PrivateAtlasesClient) CreateOrUpdateResponder(resp *http.Response) return } -// Delete delete a Private Atlas resource. +// Delete [Deprecated] Delete a Private Atlas resource. // Parameters: // resourceGroupName - the name of the resource group. The name is case insensitive. // accountName - the name of the Maps Account. @@ -146,8 +145,7 @@ func (client PrivateAtlasesClient) Delete(ctx context.Context, resourceGroupName 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("maps.PrivateAtlasesClient", "Delete", err.Error()) } @@ -212,7 +210,7 @@ func (client PrivateAtlasesClient) DeleteResponder(resp *http.Response) (result return } -// Get get a Private Atlas resource. +// Get [Deprecated] Get a Private Atlas resource. // Parameters: // resourceGroupName - the name of the resource group. The name is case insensitive. // accountName - the name of the Maps Account. @@ -233,8 +231,7 @@ func (client PrivateAtlasesClient) Get(ctx context.Context, resourceGroupName st 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("maps.PrivateAtlasesClient", "Get", err.Error()) } @@ -300,7 +297,7 @@ func (client PrivateAtlasesClient) GetResponder(resp *http.Response) (result Pri return } -// ListByAccount get all Private Atlas instances for an Azure Map Account +// ListByAccount [Deprecated] Get all Private Atlas instances for an Azure Map Account // Parameters: // resourceGroupName - the name of the resource group. The name is case insensitive. // accountName - the name of the Maps Account. @@ -320,8 +317,7 @@ func (client PrivateAtlasesClient) ListByAccount(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("maps.PrivateAtlasesClient", "ListByAccount", err.Error()) } @@ -386,8 +382,8 @@ func (client PrivateAtlasesClient) ListByAccountResponder(resp *http.Response) ( return } -// Update updates the Private Atlas resource. Only a subset of the parameters may be updated after creation, such as -// Tags. +// Update [Deprecated] Updates the Private Atlas resource. Only a subset of the parameters may be updated after +// creation, such as Tags. // Parameters: // resourceGroupName - the name of the resource group. The name is case insensitive. // accountName - the name of the Maps Account. @@ -409,8 +405,7 @@ func (client PrivateAtlasesClient) Update(ctx context.Context, resourceGroupName 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("maps.PrivateAtlasesClient", "Update", err.Error()) }